lionx sample updated 2
Returns DEX trades by token on Solana, where side currency mint address is So1111…1112, currency mint address is Df6yfr…pump and block time after 2024-12-05, sorted by block timefield: block time, price in USD, sum of trade side amount in USD and count.
What it returns
- block time
- price in USD
- sum of trade side amount in USD
- count
Filters
- side currency mint address is So1111…1112
- currency mint address is Df6yfr…pump
- block time after 2024-12-05
- side amount is above 0
- trade price asymmetry is at most 0.09
The query
query ($token: String, $base: String, $dataset: dataset_arg_enum, $time_ago: DateTime, $interval: Int) {
Solana(dataset: $dataset) {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_timefield"}
where: {Trade: {Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}, Currency: {MintAddress: {is: $base}},
PriceAsymmetry: {le: 0.09}}, Block: {Time: {after: $time_ago}}}
) {
Block {
timefield: Time(interval: {count: $interval, in: minutes})
}
Trade {
open: PriceInUSD(minimum: Block_Slot)
min: PriceInUSD(minimum: Trade_PriceInUSD)
max: PriceInUSD(maximum: Trade_PriceInUSD)
close: PriceInUSD(maximum: Block_Slot)
}
volume: sum(of: Trade_Side_AmountInUSD)
count
}
}
}
Variables
{
"base": "Df6yfrKC8kZE3KNkrHERKzAetSxbrWeniQfyJY4Jpump",
"token": "So11111111111111111111111111111111111111112",
"interval": 1,
"dataset": "combined",
"time_ago": "2024-12-05T09:25:03.276Z",
"time_before": "2024-12-05T09:38:00Z"
}
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