OHLC historical solana
Returns DEX trades by token on Solana, where market market address is CRzYHU…ah9A, currency mint address is fCRm2z…pump and block time since 2025-01-01, 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
- market market address is CRzYHU…ah9A
- currency mint address is fCRm2z…pump
- block time since 2025-01-01
- block time till 2025-01-02
- side amount is above 0
The query
query MyQuery($token: String, $time_ago: DateTime, $time_before: DateTime, $resolution: OLAP_DateTimeIntervalUnits, $space: Int) {
Solana(dataset: archive) {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {Block: {Time: {since: $time_ago, till: $time_before}, Date: {}}, Trade: {Market: {MarketAddress: {is: "CRzYHU6J3x6DTCGZ9CnDfdBv1tzuiJR1jpvR2eMkah9A"}}, Side: {Amount: {gt: "0"}}, Currency: {MintAddress: {is: $token}}}}
) {
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": "fCRm2z7npfXHMSc2LBL5garDDCAzmazYq5o6k9Tpump",
"time_ago": "2025-01-01T15:05:00.000Z",
"time_before": "2025-01-02T15:10: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