dex trades dgnx for tax rebate
Returns the latest 1000 DEX trades on Ethereum and Avalanche, where base currency is 0x51e4…7812, quote currency is 0xb31f…66c7 and maker is not 0x223b…3867: trade index, protocol, base amount, base currency address, base currency symbol, quote amount, quote currency address and 5 more fields.
What it returns
- trade index
- protocol
- base amount
- base currency address
- base currency symbol
- quote amount
- quote currency address
- quote currency symbol
- transaction hash
- maker address
- timestamp time
- block height
Filters
- base currency is 0x51e4…7812
- quote currency is 0xb31f…66c7
- maker is not 0x223b…3867
- date since 2023-03-01
- date till 2023-03-02
- buy amount is above 5
The query
query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
ethereum(network: $network) {
dexTrades(
options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
date: {since: $from, till: $till}
baseCurrency: {is: $token}
quoteCurrency: {is: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"}
maker: {not: "0x223b26cc3d0154ee9b625e94eb194940a8ca3867"}
buyAmount: {gt: 5}
) {
tradeIndex
protocol
baseAmount
baseCurrency {
address
symbol
}
base_amount_usd: baseAmount(in: USD)
quoteAmount
quoteCurrency {
address
symbol
}
quote_amount_usd: quoteAmount(in: USD)
transaction {
hash
}
maker {
address
}
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
}
}
}
Variables
{
"limit": 1000,
"offset": 0,
"network": "avalanche",
"token": "0x51e48670098173025c477d9aa3f0eff7bf9f7812",
"from": "2023-03-01T08:30:00",
"till": "2023-03-02T00:30:00",
"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