avax test 101
Returns the latest 1000 DEX trades on Ethereum and Avalanche, where base currency is 0xb97e…8a6e, quote currency is 0xb31f…66c7 and date since 2022-01-01: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.
What it returns
- timestamp time
- block height
- trade index
- protocol
- full name
- address address
- annotation
- base amount
- base currency address
- base currency symbol
- quote amount
- quote currency address
- quote currency symbol
- transaction hash
Filters
- base currency is 0xb97e…8a6e
- quote currency is 0xb31f…66c7
- date since 2022-01-01
The query
{
ethereum(network: avalanche) {
dexTrades(
options: {desc: ["block.height", "tradeIndex"], limit: 1000}
date: {since: "2022-01-01"}
baseCurrency: {is: "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e"}
quoteCurrency: {is: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
protocol
exchange {
fullName
}
smartContract {
address {
address
annotation
}
}
baseAmount
baseCurrency {
address
symbol
}
quoteAmount
quoteCurrency {
address
symbol
}
transaction {
hash
}
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "avalanche",
"from": "2022-05-12",
"till": "2022-05-19T23:59:59",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- Avalanche — Top DEXs by trade count · Avalanche · DEXTrades
- Avalanche — Latest DEX trades · Avalanche · DEXTrades
- avalanche · Avalanche · DEXTrades
- WAVAX/USDC Trades in period · Avalanche · DEXTrades
- AVAX Trades in period · Avalanche · DEXTrades