Price of both the tokens in a single query
Streams DEX trades on Solana as they happen, where buy currency mint address is EPjFWd…Dt1v and sell currency mint address is JUPyiw…DvCN: transaction signature, buy amount, buy account address, buy amount in USD, buy currency mint address, buy currency symbol, buy price and 12 more fields.
What it returns
- transaction signature
- buy amount
- buy account address
- buy amount in USD
- buy currency mint address
- buy currency symbol
- buy price
- buy price in USD
- market address
- protocol name
- protocol family
- program address
- sell price in USD
- sell price
- sell currency mint address
- sell currency symbol
- sell amount
- sell amount in USD
- sell account address
Filters
- buy currency mint address is EPjFWd…Dt1v
- sell currency mint address is JUPyiw…DvCN
The subscription
subscription {
Solana {
DEXTrades(
where: {Trade: {Buy: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}, Sell: {Currency: {MintAddress: {is: "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"}}}}}
) {
Transaction {
Signature
}
Trade {
Buy {
Amount
Account {
Address
}
AmountInUSD
Currency {
MintAddress
Symbol
}
Price_against_sell_currency: Price
PriceInUSD
}
Market {
MarketAddress
}
Dex {
ProtocolName
ProtocolFamily
ProgramAddress
}
Sell {
Price_against_buy_currency: PriceInUSD
Price
Currency {
MintAddress
Symbol
}
Amount
AmountInUSD
Account {
Address
}
}
}
}
}
}
Similar queries
- SolanaDexTradesStreamAllSigners · Solana · DEXTrades
- SolanaDexTradesStreamOneSigner · Solana · DEXTrades
- subscription Solana · Solana · DEXTrades
- jupiter trades · Solana · DEXTrades
- solana subscription · Solana · DEXTrades