solana query error
Returns DEX trades by token on Solana, where market market address is HQWsAX…fgZq and currency mint address is CBdCxK…pump: currency mint address, currency symbol, price in USD, market address, side currency symbol, side currency mint address, count and sum of trade side amount in USD.
What it returns
- currency mint address
- currency symbol
- price in USD
- market address
- side currency symbol
- side currency mint address
- count
- sum of trade side amount in USD
Filters
- market market address is HQWsAX…fgZq
- currency mint address is CBdCxK…pump
The query
query MyQuery {
Solana(dataset: archive) {
DEXTradeByTokens(
where: {Transaction: {Result: {Success: true}},
Trade: {Market: {MarketAddress:
{is: "HQWsAXxH3dGy9DQbryJyDrquKt2eDY6MMHWmpUEKfgZq"}},
Currency: {MintAddress: {is: "CBdCxKo9QavR9hfShgpEBG3zekorAeD7W1jfq2o3pump"}}}}
) {
Trade {
Currency {
MintAddress
Symbol
}
price_before_5m: PriceInUSD(
minimum: Block_Time
if: {Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
price_before_1h: PriceInUSD(
minimum: Block_Time
if: {Block: {Time: {after: "2024-11-04T05:15:00Z"}}}
)
price_before_12h: PriceInUSD(
minimum: Block_Time
if: {Block: {Time: {after: "2024-11-05T05:15:00Z"}}}
)
price_before_24h: PriceInUSD(
minimum: Block_Time
if: {Block: {Time: {after: "2024-11-06T05:15:00Z"}}}
)
current_price: PriceInUSD(maximum: Block_Time)
Market {
MarketAddress
}
Side {
Currency {
Symbol
MintAddress
}
}
}
makers_count_24h: count(
distinct: Transaction_Signer
if: {Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
buyers_count_24h: count(
distinct: Trade_Account_Address
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
sellers_count_24h: count(
distinct: Trade_Side_Account_Address
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
trades_count_24h: count(if: {Block: {Time: {after: "2024-11-03T05:15:00Z"}}})
traded_volume_usd_24h: sum(
of: Trade_Side_AmountInUSD
if: {Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
buy_volume_usd_24h: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
sell_volume_usd_24h: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
buys_count_24h: count(
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
sells_count_24h: count(
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2024-11-03T05:15:00Z"}}}
)
}
}
}
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