OHLC historical solana
OHLCV
Returns DEX trades by token on Solana, where DEX program address is 675kPX…1Mp8, currency mint address is 8bdhP1…MS7N and block time after 2024-12-24, 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
- DEX program address is 675kPX…1Mp8
- currency mint address is 8bdhP1…MS7N
- block time after 2024-12-24
- block time before 2024-12-25
The query
query MyQuery($token: String, $time_ago: DateTime, $time_before: DateTime, $resolution: OLAP_DateTimeIntervalUnits, $space: Int) {
Solana(dataset: combined) {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {Block: {Time: {after: $time_ago, before: $time_before}, Date: {}}, Trade: {Dex: {ProgramAddress: {is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"}}, 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": "8bdhP1UQMevciC9oJ7NrvgDfoW8XPXPfbkkm6vKtMS7N",
"time_ago": "2024-12-24T07:29:40Z",
"time_before": "2024-12-25T07:29:40Z",
"space": 1,
"resolution": "days"
}
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