ethix trades
Returns the latest 10 DEX trades on Ethereum and celo_rc1, where base currency is 0x9995…31ed, quote currency is 0x765d…282a and date since 2023-03-30: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 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
- quote price
Filters
- base currency is 0x9995…31ed
- quote currency is 0x765d…282a
- date since 2023-03-30
- date till 2023-04-06
The query
query ($network: EthereumNetwork!, $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: "0x9995cc8f20db5896943afc8ee0ba463259c931ed"}
quoteCurrency: {is: "0x765de816845861e75a25fca122bb6898b8b1282a"}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
protocol
exchange {
fullName
}
smartContract {
address {
address
annotation
}
}
baseAmount
baseCurrency {
address
symbol
}
buy_amount_usd: baseAmount(in: USD)
quoteAmount
quoteCurrency {
address
symbol
}
sell_amount_usd: quoteAmount(in: USD)
transaction {
hash
}
quotePrice
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "celo_rc1",
"from": "2023-03-30",
"till": "2023-04-06T23:59:59",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- ethix trade count · Celo rc1 · DEXTrades
- totalPoolVolume celo- pool ethix · Celo rc1 · DEXTrades
- Celo Event Logs - Swaps · Celo rc1 · smartContractEvents
- Celo Currencies Transfered · Celo rc1 · Transfers
- balance-history-filter_gteq · Celo rc1 · Address