dex
Returns 100 DEX trades by token on Ethereum, where block time since 2025-02-06, sorted by count, highest first: currency symbol, smart contract, fungible, currency name, protocol name, trade amount, amount in USD and 11 more fields.
What it returns
- currency symbol
- smart contract
- fungible
- currency name
- protocol name
- trade amount
- amount in USD
- buyer
- trade index
- success
- unique of trade side currency smart contract
- unique of trade DEX smart contract
- sum of trade amount
- sum of trade amount in USD
- unique of trade buyer
- unique of trade sender
- count
- array intersect
Filters
- block time since 2025-02-06
The query
query topTokens($network: evm_network, $time_ago: DateTime!) {
EVM(network: $network) {
DEXTradeByTokens(
orderBy: {descendingByField: "count", ascending: Block_L1_GasUsed, ascendingByField: "", descending: Block_L1_GasUsed}
limit: {count: 100, offset: 10}
where: {TransactionStatus: {Success: true}, Block: {Time: {since: $time_ago}}}
) {
Trade {
Currency {
Symbol(maximum: Transaction_GasPriceInUSD, minimum: Transaction_GasPriceInUSD)
SmartContract
Fungible
Name(minimum: Transaction_GasPriceInUSD, maximum: Transaction_GasPriceInUSD)
ProtocolName
}
Amount(maximum: Block_Number)
AmountInUSD(maximum: Block_Number, minimum: Transaction_GasPriceInUSD)
Buyer(maximum: Transaction_GasPriceInUSD, minimum: Transaction_GasPriceInUSD)
Index
Success
}
pairs: uniq(of: Trade_Side_Currency_SmartContract)
dexes: uniq(of: Trade_Dex_SmartContract)
amount: sum(of: Trade_Amount)
usd: sum(of: Trade_AmountInUSD)
buyers: uniq(of: Trade_Buyer)
sellers: uniq(of: Trade_Sender)
count
array_intersect(side1: Block_GasUsed, side2: Block_GasUsed, intersectWith: "")
}
}
}
Variables
{
"network": "eth",
"time_ago": "2025-02-06T15:14:19Z"
}
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