OHLC historical solana - Sol - usdc
Returns 10 DEX trades by token on Solana, where currency mint address is So1111…1112, side currency mint address is EPjFWd…Dt1v and market market address is Czfq3x…44zE, sorted by block time: price in USD, sum of trade side amount in USD and block time.
What it returns
- price in USD
- sum of trade side amount in USD
- block time
Filters
- currency mint address is So1111…1112
- side currency mint address is EPjFWd…Dt1v
- market market address is Czfq3x…44zE
- block time after 2024-08-04
- block time before 2024-10-31
- side amount is above 0
The query
query MyQuery($time_ago: DateTime, $time_before: DateTime, $resolution: OLAP_DateTimeIntervalUnits, $space: Int) {
Solana(dataset: archive) {
DEXTradeByTokens(
limit: {count: 10}
orderBy: {ascendingByField: "Block_Time"}
where: {Block: {Time: {after: $time_ago, before: $time_before}, Date: {}}, Trade: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}, Amount: {gt: "0"}}, Market: {MarketAddress: {is: "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE"}}}}
) {
Trade {
high: PriceInUSD(maximum: Trade_PriceInUSD)
low: PriceInUSD(minimum: Trade_PriceInUSD)
open: PriceInUSD(minimum: Block_Slot)
close: PriceInUSD(maximum: Block_Slot)
price: PriceInUSD(maximum: Trade_PriceInUSD)
}
volume: sum(of: Trade_Side_AmountInUSD)
Block {
Time(interval: {count: $space, in: $resolution})
}
}
}
}
Variables
{
"token": "Cwa6QNeNP2Qh7zR34hdzJdgtDDmaD2Y96m7c9HBdpump",
"time_ago": "2024-08-04T00:00:00.000Z",
"time_before": "2024-10-31T00:00:00.000Z",
"space": 1,
"resolution": "minutes"
}
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