Price in USD for SAND Token
Returns the latest DEX trade on Ethereum, where buy currency is 0x3845…a5d0, sell currency is 0xc02a…6cc2 and time since 2024-02-01: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 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
- expression
Filters
- buy currency is 0x3845…a5d0
- sell currency is 0xc02a…6cc2
- time since 2024-02-01
The query
{
ethereum(network: ethereum) {
dexTrades(
buyCurrency: {is: "0x3845badAde8e6dFF049820680d1F14bD3903a5d0"}
sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
options: {desc: ["block.height", "tradeIndex"], limit: 1, offset: 0}
time: {since: "2024-02-01T00:00:00"}
) {
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
}
PriceInUSD1: expression(get: "buy_amount_usd / buyAmount")
PriceInUSD2: expression(get: "sell_amount_usd / buyAmount")
}
}
}
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