get pairs data for a given token
Returns the latest 10 DEX trades on Ethereum, where base currency is 0x2b59…eb39, date since 2022-05-18 and date till 2022-05-25: quote currency symbol, quote currency name, quote currency address, block height, address address, count, trade amount and 2 more fields.
What it returns
- quote currency symbol
- quote currency name
- quote currency address
- block height
- address address
- count
- trade amount
- quote price
- exchange name
Filters
- base currency is 0x2b59…eb39
- date since 2022-05-18
- date till 2022-05-25
The query
query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime, $baseCurrency: String, $limit: Int!, $offset: Int!) {
ethereum(network: $network) {
dexTrades(
baseCurrency: {is: $baseCurrency}
date: {since: $from, till: $till}
options: {desc: ["block.height", "trades"], limit: $limit, offset: $offset, limitBy: {each: "quoteCurrency.address", limit: 1}}
) {
quoteCurrency {
symbol
name
address
}
block {
height
}
pair_contract: smartContract {
address {
address
}
}
trades: count
tradeAmount(calculate: sum, in: USD)
quotePrice
exchange {
name
}
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "ethereum",
"baseCurrency": "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39",
"from": "2022-05-18",
"till": "2022-05-25T23:59:59",
"dateFormat": "%Y-%m-%d"
}
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