TokenPair
Returns one DEX trade on Ethereum, sorted by count, highest first: buy currency symbol, buy currency name, buy smart contract, sell currency symbol, sell currency name, sell smart contract, smart contract and count.
What it returns
- buy currency symbol
- buy currency name
- buy smart contract
- sell currency symbol
- sell currency name
- sell smart contract
- smart contract
- count
The query
query tokenPairQuery($tokenAddress: String!) {
EVM(dataset: combined, network: eth) {
DEXTrades(
where: {Trade: {Buy: {Currency: {SmartContract: {is: $tokenAddress}}}}}
limit: {count: 1}
limitBy: {by: Trade_Sell_Currency_SmartContract, count: 1}
orderBy: {descendingByField: "count"}
) {
Trade {
Buy {
Currency {
Symbol
Name
SmartContract
}
}
Sell {
Currency {
Symbol
Name
SmartContract
}
}
Dex {
Pair {
SmartContract
}
}
}
count
}
}
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades