lionx sample
Returns the latest DEX trades by token on Solana, where side currency mint address is So1111…1112, currency mint address is ED5nyy…PJBY and block time after 2024-12-03: 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 ED5nyy…PJBY
- block time after 2024-12-03
- side amount is above 0
- trade price asymmetry is at most 0.1
The query
query ($token: String, $base: String, $dataset: dataset_arg_enum, $time_ago: DateTime, $interval: Int) {
Solana(dataset: $dataset) {
DEXTradeByTokens(
orderBy: {descendingByField: "Block_timefield"}
where: {Trade: {Side: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}, Currency: {MintAddress: {is: $base}}, PriceAsymmetry: {le: 0.1}}, Block: {Time: {after: $time_ago}}}
) {
Block {
timefield: Time(interval: {count: $interval, in: minutes})
}
Trade {
open: PriceInUSD(minimum: Block_Time)
min: PriceInUSD(minimum: Trade_PriceInUSD)
max: PriceInUSD(maximum: Trade_PriceInUSD)
close: PriceInUSD(maximum: Block_Time)
}
volume: sum(of: Trade_Side_AmountInUSD)
count
}
}
}
Variables
{
"base": "ED5nyyWEzpPPiWimP8vYm7sD7TD3LAt3Q3gRTWHzPJBY",
"token": "So11111111111111111111111111111111111111112",
"interval": 1,
"dataset": "combined",
"time_ago": "2024-12-03T09:57:03.276Z",
"time_before": "2024-12-03T11:57:03.276Z"
}
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