solana top pairs
Returns 100 DEX trades by token on Solana, sorted by USD, highest first: currency symbol, currency name, currency mint address, side currency symbol, side currency name, side currency mint address, price in USD and 5 more fields.
What it returns
- currency symbol
- currency name
- currency mint address
- side currency symbol
- side currency name
- side currency mint address
- price in USD
- unique of trade DEX program address
- sum of trade side amount
- sum of trade side amount in USD
- unique of trade account owner
- count
The query
query ($time_10min_ago: DateTime, $time_1h_ago: DateTime, $time_3h_ago: DateTime, $time_ago: DateTime, $wsol: String!, $usdc: String!, $usdt: String!) {
Solana {
DEXTradeByTokens(
where: {Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}, any: [
{Trade: {Side: {Currency: {MintAddress: {is: $usdc}}}}},
{Trade: {Currency: {MintAddress: {notIn: [$usdc, $usdt]}},
Side: {Currency: {MintAddress: {is: $wsol}}}}},
{Trade: {Currency: {MintAddress: {notIn: [$usdc, $wsol]}},
Side: {Currency: {MintAddress: {is: $usdt}}}}},
{Trade: {Currency: {MintAddress: {notIn: [$wsol, $usdc, $usdt]}},
Side: {Currency: {MintAddress: {notIn: [$wsol, $usdc, $usdt]}}}}}
]}
orderBy: {descendingByField: "usd"}
limit: {count: 100}
) {
Trade {
Currency {
Symbol
Name
MintAddress
}
Side {
Currency {
Symbol
Name
MintAddress
}
}
price_last: PriceInUSD(maximum: Block_Slot)
price_10min_ago: PriceInUSD(
maximum: Block_Slot
if: {Block: {Time: {before: $time_10min_ago}}}
)
price_1h_ago: PriceInUSD(
maximum: Block_Slot
if: {Block: {Time: {before: $time_1h_ago}}}
)
price_3h_ago: PriceInUSD(
maximum: Block_Slot
if: {Block: {Time: {before: $time_3h_ago}}}
)
}
dexes: uniq(of: Trade_Dex_ProgramAddress)
amount: sum(of: Trade_Side_Amount)
usd: sum(of: Trade_Side_AmountInUSD)
traders: uniq(of: Trade_Account_Owner)
count(selectWhere: {ge: "100"})
}
}
}
Variables
{
"time_10min_ago": "2025-01-24T13:10:07Z",
"time_1h_ago": "2025-01-24T12:20:07Z",
"time_3h_ago": "2025-01-24T10:20:07Z",
"time_ago": "2025-01-24T05:20:07Z",
"wsol": "So11111111111111111111111111111111111111112",
"usdc": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"usdt": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
}
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