first_&_last_trade_pair_of_day
Returns the latest DEX trade on Ethereum, where buy currency is 0xc02a…6cc2, sell currency is 0x6982…1933 and date since 2023-04-18: block height, address address, buy amount, buy currency symbol, buy currency address, sell amount, sell currency symbol and 2 more fields.
What it returns
- block height
- address address
- buy amount
- buy currency symbol
- buy currency address
- sell amount
- sell currency symbol
- sell currency address
- transaction hash
Filters
- buy currency is 0xc02a…6cc2
- sell currency is 0x6982…1933
- date since 2023-04-18
- date till 2023-04-18
The query
query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
ethereum(network: $network) {
first: dexTrades(
date: {since: $from, till: $till}
options: {asc: "block.height", limit: 1}
buyCurrency : {is : "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
sellCurrency: {is : "0x6982508145454ce325ddbe47a25d4ec3d2311933"}
) {
block {
height
}
smartContract {
address {
address
}
}
buyAmount
buyCurrency {
symbol
address
}
sellAmount
sellCurrency {
symbol
address
}
transaction {
hash
}
}
last : dexTrades(
date: {since: $from, till: $till}
options: {desc: "block.height", limit: 1}
buyCurrency : {is : "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
sellCurrency: {is : "0x6982508145454ce325ddbe47a25d4ec3d2311933"}
) {
block {
height
}
smartContract {
address {
address
}
}
buyAmount
buyCurrency {
symbol
address
}
sellAmount
sellCurrency {
symbol
address
}
transaction {
hash
}
}
}
}
Variables
{
"network": "ethereum",
"from": "2023-04-18T00:00:01",
"till": "2023-04-18T23:59:59",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades