checking
Returns one DEX trade on Ethereum, where smart contract address is 0x4476…e529, time after 2023-08-17 and time before 2023-08-17, sorted by block height trade index: address address, full name, full name with ID, exchange name, decimals, currency name, currency symbol and 15 more fields.
What it returns
- address address
- full name
- full name with ID
- exchange name
- decimals
- currency name
- currency symbol
- token type
- protocol type
- contract type
- buy amount
- buy currency symbol
- buy currency address
- buy currency name
- sell amount
- sell currency symbol
- sell currency address
- sell currency name
- expression
- block height
- iso8601
- trade index
Filters
- smart contract address is 0x4476…e529
- time after 2023-08-17
- time before 2023-08-17
The query
query ($from: ISO8601DateTime!, $to: ISO8601DateTime!) {
ethereum(network: ethereum) {
dexTrades(
time: {after: $from, before: $to}
smartContractAddress: {is: "0x4476fc21ee9a44c34ec34dd7ac4cfbb5a986e529"}
options: {limit: 1, asc: ["block.height", "tradeIndex"]}
) {
exchange {
address {
address
}
fullName
fullNameWithId
name
}
smartContract {
address {
address
}
currency {
decimals
name
symbol
tokenType
}
protocolType
contractType
}
buyAmount
buyAmountUSD: buyAmount(in: USD)
buyCurrency {
symbol
address
name
tokenType
decimals
}
sellAmount
sellAmountUSD: sellAmount(in: USD)
sellCurrency {
symbol
address
name
tokenType
decimals
}
usdPrice: expression(get: "buyAmountUSD / sellAmount")
usdPrice1: expression(get: "sellAmountUSD / buyAmount")
block {
height
timestamp {
iso8601
}
}
tradeIndex
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "ethereum",
"from": "2023-08-17",
"to": "2023-08-17T23: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