trading pairs
Returns 200 DEX trades by token on Ethereum, where currency smart contract is 0x30c4…1c44 and block time after 2026-03-10, sorted by USD, highest first: currency symbol, currency name, smart contract, fungible, side currency symbol, side currency name, side smart contract and 6 more fields.
What it returns
- currency symbol
- currency name
- smart contract
- fungible
- side currency symbol
- side currency name
- side smart contract
- price in USD
- trade price
- sum of trade amount in USD
- sum of trade amount
- count
- calculate
Filters
- currency smart contract is 0x30c4…1c44
- block time after 2026-03-10
The query
query tokenTrades($network: evm_network!, $token: String!, $time_10min_ago: DateTime!, $time_1h_ago: DateTime!, $time_3h_ago: DateTime!, $time_ago: DateTime!) {
EVM(network: $network) {
DEXTradeByTokens(
orderBy: {descendingByField: "usd"}
where: {Trade: {Currency: {SmartContract: {is: $token}}}, Block: {Time: {after: $time_ago}}}
limit: {count: 200}
) {
Trade {
Currency {
Symbol
Name
SmartContract
Fungible
}
Side {
Currency {
Symbol
Name
SmartContract
}
}
price_usd: PriceInUSD(maximum: Block_Number)
price_last: Price(maximum: Block_Number)
price_10min_ago: Price(
minimum: Block_Number
if: {Block: {Time: {after: $time_10min_ago}}}
)
price_1h_ago: Price(
minimum: Block_Number
if: {Block: {Time: {after: $time_1h_ago}}}
)
price_3h_ago: Price(
minimum: Block_Number
if: {Block: {Time: {after: $time_3h_ago}}}
)
}
usd: sum(of: Trade_AmountInUSD)
vol: sum(of: Trade_Amount)
count
price_change_10min: calculate(
expression: "(($Trade_price_last - $Trade_price_10min_ago) / $Trade_price_10min_ago) * 100"
)
price_change_1h: calculate(
expression: "(($Trade_price_last - $Trade_price_1h_ago) / $Trade_price_1h_ago) * 100"
)
price_change_3h: calculate(
expression: "(($Trade_price_last - $Trade_price_3h_ago) / $Trade_price_3h_ago) * 100"
)
}
}
}
Variables
{
"network": "eth",
"token": "0x30c488baf577763bf5f978d29ec9e7fe6fc61c44",
"time_1h_ago": "2026-03-11T10:25:13Z",
"time_3h_ago": "2026-03-11T08:25:13Z",
"time_10min_ago": "2026-03-11T11:15:13Z",
"time_ago": "2026-03-10T11:25:13Z"
}
Similar queries
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- ATH of eth token · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens