USD price of an asset
Returns one DEX trade on Ethereum, where buy currency is 0xef8e…6199, time after 2023-05-25 and time before 2023-05-27, sorted by block height trade index: block height, iso8601, transaction hash, trade index, buy currency symbol, buy currency address, buy currency name and 13 more fields.
What it returns
- block height
- iso8601
- transaction hash
- trade index
- buy currency symbol
- buy currency address
- buy currency name
- token type
- decimals
- buy amount
- sell currency symbol
- sell currency address
- sell currency name
- sell amount
- expression
- maker address
- taker address
- protocol
- address address
- exchange name
Filters
- buy currency is 0xef8e…6199
- time after 2023-05-25
- time before 2023-05-27
The query
query ($from: ISO8601DateTime!, $to: ISO8601DateTime!, $limit: Int) {
ethereum(network: ethereum) {
dexTrades(
time: {after: $from, before: $to}
options: {limit: $limit, asc: ["block.height", "tradeIndex"]}
buyCurrency: {is: "0xef8e456967122db4c3c160314bde8d2602ad6199"}
) {
block {
height
timestamp {
iso8601
}
}
transaction {
hash
}
tradeIndex
buyCurrency {
symbol
address
name
tokenType
decimals
}
buyAmount
buyAmountUSD: buyAmount(in: USD)
sellCurrency {
symbol
address
name
tokenType
decimals
}
sellAmount
sellAmountUSD: sellAmount(in: USD)
usdPrice: expression(get: "buyAmountUSD / buyAmount")
maker {
address
}
taker {
address
}
protocol
exchange {
address {
address
}
name
}
smartContract {
address {
address
}
}
}
}
}
Variables
{
"from": "2023-05-25T12:06:59.000Z",
"to": "2023-05-27T12:06:59.000Z",
"limit": 1
}
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