OHLC historical solana - MCI v3
Working OHCL for specified time range
Returns one DEX trade by token on Solana, where currency mint address is CzLSuj…pump, block time after 2024-11-29 and block time before 2024-11-30, sorted by block timefield: trade price, block time, sum of trade amount and count.
What it returns
- trade price
- block time
- sum of trade amount
- count
Filters
- currency mint address is CzLSuj…pump
- block time after 2024-11-29
- block time before 2024-11-30
- block time since 2024-11-01
The query
query MyQuery($token: String, $time_ago: DateTime, $time_since: DateTime, $time_before: DateTime) {
Solana(dataset: archive) {
DEXTradeByTokens(
limit: {count: 1}
orderBy: {ascendingByField: "Block_Timefield"}
where: {Block: {Time: {after: $time_ago, before: $time_before, since: $time_since}}, Trade: {Currency: {MintAddress: {is: $token}}}}
) {
Trade {
open: Price(minimum: Block_Slot)
high: Price(maximum: Trade_Price)
low: Price(minimum: Trade_Price)
close: Price(maximum: Block_Slot)
}
Block {
Timefield: Time(interval: {count: 1, in: days})
}
volume: sum(of: Trade_Amount)
count
}
}
}
Variables
{
"token": "CzLSujWBLFsSjncfkh59rUFqvafWcY5tzedWJSuypump",
"time_ago": "2024-11-29T00:00:00Z",
"time_since": "2024-11-01T00:00:00Z",
"time_before": "2024-11-30T23:59:59Z"
}
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