OHLC SOL
Returns the latest 10 DEX trades by token on Solana, where currency mint address is 6p6xgH…GiPN, block time before 2025-02-01 and side amount is above 0: program address, protocol family, protocol name, currency symbol, currency name, currency mint address, price in USD and 2 more fields.
What it returns
- program address
- protocol family
- protocol name
- currency symbol
- currency name
- currency mint address
- price in USD
- sum of trade side amount in USD
- block time
Filters
- currency mint address is 6p6xgH…GiPN
- block time before 2025-02-01
- side amount is above 0
The query
query MyQuery($token: String, $time_before: DateTime) {
Solana(dataset: combined) {
DEXTradeByTokens(
orderBy: {descendingByField: "Block_Time"}
where: {Block: {Time: {before: $time_before}}, Trade: {Side: {Amount: {gt: "0"}}, Currency: {MintAddress: {is: $token}}}}
limit: {count: 10}
) {
Trade {
Dex {
ProgramAddress
ProtocolFamily
ProtocolName
}
Currency {
Symbol
Name
MintAddress
}
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: 1, in: minutes})
}
}
}
}
Variables
{
"token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"time_ago": "2024-08-04T00:00:00.000Z",
"time_before": "2025-02-01T00:00:00.000Z",
"space": 1,
"resolution": "minutes"
}
Similar queries
- ANSEM daily traders, June 16 to 26, 2026 · Solana · DEXTradeByTokens
- ANSEM swaps per hour, June 27, 2026 · 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