query_ohlc_quantile__
Returns DEX trades by token on Solana, where currency mint address is So1111…1112, side currency mint address is EPjFWd…Dt1v and block time since 2025-04-17, sorted by block time: block time, quantile of trade price, median of trade price, sum of trade side amount, side currency name and side currency symbol.
What it returns
- block time
- quantile of trade price
- median of trade price
- sum of trade side amount
- side currency name
- side currency symbol
Filters
- currency mint address is So1111…1112
- side currency mint address is EPjFWd…Dt1v
- block time since 2025-04-17
- block time till 2025-04-17
- trade amount is above 0
The query
query TradesSolToken($ca: String!, $currencies: [String!], $dataset: dataset_arg_enum, $interval: Int, $from: DateTime, $to: DateTime) {
Solana(dataset: $dataset) {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {Trade: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $ca}}, Side: {Currency: {MintAddress: {in: $currencies}}}}, Transaction: {Result: {Success: true}}, Block: {Time: {since: $from, till: $to}}}
) {
Block {
Time(interval: {count: $interval, in: minutes})
}
min: quantile(of: Trade_Price, level: 0.05)
max: quantile(of: Trade_Price, level: 0.95)
close: median(of: Trade_Price)
open: median(of: Trade_Price)
volume: sum(of: Trade_Side_Amount)
Trade {
Side {
Currency {
Name
Symbol
}
}
}
}
}
}
Variables
{
"interval": 1,
"dataset": "archive",
"from": "2025-04-17T19:21:30Z",
"to": "2025-04-17T19:22:00Z",
"ca": "So11111111111111111111111111111111111111112",
"currencies": ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]
}
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