Aliasing example
Returns 1000 DEX trades and address details on Ethereum and BNB Chain, where base currency is 0xda8c…04cf and address is 0xda8c…04cf, sorted by trades, highest first: address address, full name, base currency address, base currency symbol, decimals, count, quote currency symbol and 8 more fields.
What it returns
- address address
- full name
- base currency address
- base currency symbol
- decimals
- count
- quote currency symbol
- quote currency address
- trade amount
- transaction hash
- quote price
- currency address
- currency name
- currency symbol
- balances value
Filters
- base currency is 0xda8c…04cf
- address is 0xda8c…04cf
The query
query GetPoolsOfToken($network: EthereumNetwork!, $tokenAddress: String!) {
ethereum(network: $network) {
dexTrades(
baseCurrency: {is: $tokenAddress}
options: {desc: "trades", limit: 1000}
) {
poolToken: smartContract {
address {
address
}
}
exchange {
fullName
address {
address
}
}
baseCurrency {
address
symbol
decimals
}
trades: count
pair: quoteCurrency {
symbol
address
decimals
}
tradeAmount(in: USD)
transaction {
hash
}
quotePrice(calculate: maximum)
}
balance: address(address: {is: $tokenAddress}) {
balances {
currency {
address
name
symbol
}
value
}
}
}
}
Variables
{
"network": "bsc",
"tokenAddress": "0xda8ceb724a06819c0a5cdb4304ea0cb27f8304cf"
}
Similar queries
- Latest DODO DEX swaps on BSC · BNB Chain · DEXTrades
- Top DODO liquidity pools by 24h volume on BSC · BNB Chain · DEXTrades
- trades · Ethereum · DEXTrades
- metric_v1_bsc · BNB Chain · DEXTrades
- bsc_tessera · BNB Chain · DEXTrades