Buys, Sells, BuyVolume, SellVolume, Makers, TotalTradedVolume, PriceinUSD for solana token all pairs pair
Returns DEX trades by token on Solana: currency name, currency mint address, currency symbol, price in USD, protocol name, protocol family, program address and 6 more fields.
What it returns
- currency name
- currency mint address
- currency symbol
- price in USD
- protocol name
- protocol family
- program address
- market address
- side currency symbol
- side currency name
- side currency mint address
- sum of trade side amount in USD
- count
The query
query MyQuery(
$token: String!,
$pair_address: String!,
$time_1min_ago: DateTime!,
$time_5min_ago: DateTime!,
$time_1h_ago: DateTime!,
$time_6h_ago: DateTime!,
$time_24h_ago: DateTime!
) {
Solana(dataset: realtime) {
DEXTradeByTokens(
where: {
Transaction: {Result: {Success: true}},
Trade: {
Currency: {MintAddress: {is: $token}},
Market: {MarketAddress: {is: $pair_address}}
},
Block: {Time: {since: $time_24h_ago}}
}
) {
Trade {
Currency { Name MintAddress Symbol }
start: PriceInUSD(minimum: Block_Time)
min5: PriceInUSD(minimum: Block_Time, if: {Block: {Time: {after: $time_5min_ago}}})
end: PriceInUSD(maximum: Block_Time)
Dex { ProtocolName ProtocolFamily ProgramAddress }
Market { MarketAddress }
Side { Currency { Symbol Name MintAddress } }
}
traded_volume: sum(of: Trade_Side_AmountInUSD)
traded_volume_1min: sum(of: Trade_Side_AmountInUSD, if: {Block: {Time: {after: $time_1min_ago}}})
traded_volume_5min: sum(of: Trade_Side_AmountInUSD, if: {Block: {Time: {after: $time_5min_ago}}})
traded_volume_1h: sum(of: Trade_Side_AmountInUSD, if: {Block: {Time: {after: $time_1h_ago}}})
traded_volume_6h: sum(of: Trade_Side_AmountInUSD, if: {Block: {Time: {after: $time_6h_ago}}})
traded_volume_24h: sum(of: Trade_Side_AmountInUSD)
buyers: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: buy}}}})
buyers_1min: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_1min_ago}}})
buyers_5min: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_5min_ago}}})
buyers_1h: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_1h_ago}}})
buyers_6h: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_6h_ago}}})
sellers: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: sell}}}})
sellers_1min: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_1min_ago}}})
sellers_5min: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_5min_ago}}})
sellers_1h: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_1h_ago}}})
sellers_6h: count(distinct: Transaction_Signer, if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_6h_ago}}})
makers: count(distinct: Transaction_Signer)
makers_1min: count(distinct: Transaction_Signer, if: {Block: {Time: {after: $time_1min_ago}}})
makers_5min: count(distinct: Transaction_Signer, if: {Block: {Time: {after: $time_5min_ago}}})
makers_1h: count(distinct: Transaction_Signer, if: {Block: {Time: {after: $time_1h_ago}}})
makers_6h: count(distinct: Transaction_Signer, if: {Block: {Time: {after: $time_6h_ago}}})
trades: count
trades_1min: count(if: {Block: {Time: {after: $time_1min_ago}}})
trades_5min: count(if: {Block: {Time: {after: $time_5min_ago}}})
trades_1h: count(if: {Block: {Time: {after: $time_1h_ago}}})
trades_6h: count(if: {Block: {Time: {after: $time_6h_ago}}})
buy_volume: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
buy_volume_1min: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_1min_ago}}})
buy_volume_5min: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_5min_ago}}})
buy_volume_1h: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_1h_ago}}})
buy_volume_6h: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_6h_ago}}})
sell_volume: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
sell_volume_1min: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_1min_ago}}})
sell_volume_5min: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_5min_ago}}})
sell_volume_1h: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_1h_ago}}})
sell_volume_6h: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_6h_ago}}})
buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
buys_1min: count(if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_1min_ago}}})
buys_5min: count(if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_5min_ago}}})
buys_1h: count(if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_1h_ago}}})
buys_6h: count(if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $time_6h_ago}}})
sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
sells_1min: count(if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_1min_ago}}})
sells_5min: count(if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_5min_ago}}})
sells_1h: count(if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_1h_ago}}})
sells_6h: count(if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $time_6h_ago}}})
}
}
}
Similar queries
- ANSEM daily traders, June 16 to 26, 2026 · Solana · DEXTradeByTokens
- Solana SOL/USDC 1-Minute OHLC with DEXTradeByTokens · Solana · DEXTradeByTokens
- FOMO App: Top Tokens Bought, Last Hour (Solana) · Solana · DEXTradeByTokens
- FOMO App: Most Active Wallets, Last Hour (Solana) · Solana · DEXTradeByTokens
- Buys, Sells, BuyVolume, SellVolume, Makers, TotalTradedVolume, PriceinUSD for solana token pair · Solana · DEXTradeByTokens