resolveSymbol-matic-example
Returns 10 DEX trades on Ethereum and Polygon, where base currency is 0x0000…fa1c and quote currency is 0x0d50…1270, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, base currency name, base currency symbol, decimals, quote currency name and 2 more fields.
What it returns
- block height
- timestamp time
- transaction index
- base currency name
- base currency symbol
- decimals
- quote currency name
- quote currency symbol
- quote price
Filters
- base currency is 0x0000…fa1c
- quote currency is 0x0d50…1270
The query
query ($tokenAddress: String) {
ethereum(network: matic) {
dexTrades(
options: {desc: ["block.height", "transaction.index"], limit: 10}
baseCurrency: {is: $tokenAddress}
quoteCurrency: {is: "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
transaction {
index
}
baseCurrency {
name
symbol
decimals
}
quoteCurrency {
name
symbol
decimals
}
quotePrice
}
}
}
Variables
{
"tokenAddress": "0x0000000000004946c0e9f43f4dee607b0ef1fa1c"
}
Similar queries
- trades · Ethereum · DEXTrades
- matic_DEXTrades · Polygon · DEXTrades
- prediction_dextrades · Polygon · DEXTrades
- matic MAPU trades · Polygon · DEXTrades
- List of DEX supported · Polygon · DEXTrades