dex-trades1
Returns the latest 10 DEX trades on Ethereum and celo_mainnet, where time since 2024-01-01 and time till 2024-01-24: 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
- buy amount
- buy currency address
- buy currency symbol
- sell amount
- sell currency address
- sell currency symbol
- transaction hash
Filters
- time since 2024-01-01
- time till 2024-01-24
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}
time: {since: $from, till: $till}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
protocol
exchange {
fullName
}
smartContract {
address {
address
annotation
}
}
buyAmount
buyCurrency {
address
symbol
}
buy_amount_usd: buyAmount(in: USD)
sellAmount
sellCurrency {
address
symbol
}
sell_amount_usd: sellAmount(in: USD)
transaction {
hash
}
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "celo_mainnet",
"from": "2024-01-01T08:56:55.000Z",
"till": "2024-01-24T09:26:55.999Z",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- celo trade · Celo mainnet · DEXTrades
- celo price on a particular date · Celo mainnet · DEXTrades
- Trades for a given wallet_celo · Celo mainnet · DEXTrades
- usd price at 24h before timestamp · Celo mainnet · DEXTrades
- Celo token price · Celo mainnet · DEXTrades