ohlcv
Returns DEX trades by token on Solana, where currency mint address is So1111…1112, side currency mint address is EPjFWd…Dt1v or Es9vMF…wNYB and block time after 2025-06-25, sorted by block timefield: block time, quantile of trade price in USD, median of trade price in USD, sum of trade amount, sum of trade side amount in USD, count, price in USD and 3 more fields.
What it returns
- block time
- quantile of trade price in USD
- median of trade price in USD
- sum of trade amount
- sum of trade side amount in USD
- count
- price in USD
- side currency name
- side currency symbol
- side currency mint address
Filters
- currency mint address is So1111…1112
- side currency mint address is EPjFWd…Dt1v or Es9vMF…wNYB
- block time after 2025-06-25
- block time before 2025-06-26
- side amount in USD is at least 1
The query
{
Solana(dataset: combined) {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Timefield"}
where: {Trade: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Side: {Currency: {MintAddress: {in: ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]}}, AmountInUSD: {ge: "1"}}}, Transaction: {Result: {Success: true}}, Block: {Time: {after: "2025-06-25T18:00:00Z", before: "2025-06-26T18:00:00Z"}}}
) {
Block {
Timefield: Time(interval: {in: minutes, count: 60})
}
low: quantile(of: Trade_PriceInUSD, level: 0.01)
high: quantile(of: Trade_PriceInUSD, level: 0.99)
median: median(of: Trade_PriceInUSD)
# deviation: standard_deviation(of: Trade_PriceInUSD)
volume: sum(of: Trade_Amount)
volumeInUSD: sum(of: Trade_Side_AmountInUSD)
buyvolumeInUSD: sum(of:Trade_Side_AmountInUSD if:{Trade:{Side:{Type:{is:buy}}}})
sellvolumeInUSD: sum(of:Trade_Side_AmountInUSD if:{Trade:{Side:{Type:{is:sell}}}})
buyCount: count(if:{Trade:{Side:{Type:{is:buy}}}})
sellCount: count(if:{Trade:{Side:{Type:{is:sell}}}})
Trade {
min: PriceInUSD(minimum: Trade_PriceInUSD)
max: PriceInUSD(maximum: Trade_PriceInUSD)
open: PriceInUSD(minimum: Block_Slot)
close: PriceInUSD(maximum: Block_Slot)
Side {
Currency {
Name
Symbol
MintAddress
}
}
}
count
}
}
}
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