trades for a pair
Returns the latest 500 DEX trades on Ethereum and BNB Chain, where smart contract address is 0x604d…a6dc, exchange name is Pancake v2 and date since 2022-12-09: timestamp time, block height, trade index, buy amount, buy currency address, buy currency symbol, sell amount and 4 more fields.
What it returns
- timestamp time
- block height
- trade index
- buy amount
- buy currency address
- buy currency symbol
- sell amount
- sell currency address
- sell currency symbol
- transaction hash
- trade amount
Filters
- smart contract address is 0x604d…a6dc
- exchange name is Pancake v2
- date since 2022-12-09
- date till 2022-12-22
The query
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $exchange: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
ethereum(network: $network) {
dexTrades(
options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
date: {since: $from, till: $till}
exchangeName: {is: $exchange}
smartContractAddress: {is: "0x604d6973e293a1681a81202442edbe56ea8fa6dc"}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
buyAmount
buy_amount_usd: buyAmount(in: USD)
buyCurrency {
address
symbol
}
sellAmount
sellAmount_in_Usd: sellAmount(in: USD)
sellCurrency {
address
symbol
}
transaction {
hash
}
tradeAmount(in: USD)
}
}
}
Variables
{
"limit": 500,
"offset": 0,
"network": "bsc",
"exchange": "Pancake v2",
"from": "2022-12-09",
"till": "2022-12-22T23:59:59",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- Latest DODO DEX swaps on BSC · BNB Chain · DEXTrades
- Top DODO liquidity pools by 24h volume on BSC · BNB Chain · DEXTrades
- trades · Ethereum · DEXTrades
- metric_v1_bsc · BNB Chain · DEXTrades
- bsc_tessera · BNB Chain · DEXTrades