OHLC -abdi
OHLC
Returns the latest 10000 DEX trades by token on Solana, where DEX protocol family is Raydium, block time after 2024-08-01 and block time before 2024-09-21: block time, sum of trade amount and price in USD.
What it returns
- block time
- sum of trade amount
- price in USD
Filters
- DEX protocol family is Raydium
- block time after 2024-08-01
- block time before 2024-09-21
The query
query getMinuteOHLC(
$tokenA: String!,
$tokenB: String!,
$start: DateTime!,
$end: DateTime!,
$limit: Int!,
$offset: Int!
) {
Solana(dataset: archive) {
DEXTradeByTokens(
orderBy: {descending: Block_Time}
where: {
Block: { Time: {after: $start, before: $end} }
Trade: {
Dex: {
ProtocolFamily: {is: "Raydium"}
}
Currency: {MintAddress: {is: $tokenA}}
Side: {Currency: {MintAddress: {is: $tokenB}}}
}
}
limit: {count: $limit, offset: $offset}
) {
Block {
minuteTimestamp: Time(interval: {count: 1, in: minute})
}
volume: sum(of: Trade_Amount)
Trade {
highest: PriceInUSD(maximum: Trade_Price)
lowest: PriceInUSD(minimum: Trade_Price)
open: PriceInUSD(first: Block_Time)
close: PriceInUSD(last: Block_Time)
}
}
}
}
Variables
{
"start": "2024-08-01T01:39:00.000Z",
"end": "2024-09-21T01:39:00.000Z",
"limit": 10000,
"offset": 10
}
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