snapx mismatch
Returns DEX trades by token on Solana, where market market address is HQWsAX…fgZq: currency name, currency mint address, currency symbol, price in USD, protocol name, protocol family, program address and 6 more fields.
What it returns
- currency name
- currency mint address
- currency symbol
- price in USD
- protocol name
- protocol family
- program address
- market address
- side currency symbol
- side currency name
- side currency mint address
- count
- sum of trade side amount in USD
Filters
- market market address is HQWsAX…fgZq
The query
query MyQuery($market_address: String, $h24_time: DateTime) {
Solana(dataset: archive) {
DEXTradeByTokens(
where: {Transaction: {Result: {Success: true}}, Trade: {Market: {MarketAddress: {is: $market_address}}}}
) {
Trade {
Currency {
Name
MintAddress
Symbol
}
start: PriceInUSD(minimum: Block_Time)
h24: PriceInUSD(minimum: Block_Time, if: {Block: {Time: {after: $h24_time}}})
end: PriceInUSD(maximum: Block_Time)
Dex {
ProtocolName
ProtocolFamily
ProgramAddress
}
Market {
MarketAddress
}
Side {
Currency {
Symbol
Name
MintAddress
}
}
}
buyers_count: count(
distinct: Trade_Account_Address
if: {Trade: {Side: {Type: {is: buy}}}}
)
buyers_count_24h: count(
distinct: Trade_Account_Address
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $h24_time}}}
)
sellers_count: count(
distinct: Trade_Side_Account_Address
if: {Trade: {Side: {Type: {is: sell}}}}
)
sellers_count_24h: count(
distinct: Trade_Side_Account_Address
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $h24_time}}}
)
trades_count: count
trades_count_24h: count(if: {Block: {Time: {after: $h24_time}}})
traded_volume_usd: sum(of: Trade_Side_AmountInUSD)
traded_volume_usd_24h: sum(
of: Trade_Side_AmountInUSD
if: {Block: {Time: {after: $h24_time}}}
)
buy_volume_usd: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}}
)
buy_volume_usd_24h: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $h24_time}}}
)
sell_volume_usd: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}}
)
sell_volume_usd_24h: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $h24_time}}}
)
buys_count: count(if: {Trade: {Side: {Type: {is: buy}}}})
buys_count_24h: count(
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: $h24_time}}}
)
sells_count_total: count(if: {Trade: {Side: {Type: {is: sell}}}})
sells_count_24h: count(
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: $h24_time}}}
)
}
}
}
Variables
{
"market_address": "HQWsAXxH3dGy9DQbryJyDrquKt2eDY6MMHWmpUEKfgZq",
"h24_time": "2024-11-01T02:24: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