latest TokenPairQuotePrice
Currency Price Pair
Returns one DEX trade on Ethereum, where base currency is 0x6942…9528 and quote currency is 0xC02a…6Cc2, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, base currency symbol, base currency name, quote currency symbol, quote currency name and quote price.
What it returns
- block height
- timestamp time
- transaction index
- base currency symbol
- base currency name
- quote currency symbol
- quote currency name
- quote price
Filters
- base currency is 0x6942…9528
- quote currency is 0xC02a…6Cc2
The query
query GetTokenPairQuotePrice($baseCurrency: String, $quoteCurrency: String) {
ethereum(network: ethereum) {
dexTrades(
baseCurrency: {is: $baseCurrency}
quoteCurrency: {is: $quoteCurrency}
options: {desc: ["block.height", "transaction.index"], limit: 1}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
transaction {
index
}
baseCurrency {
symbol
name
}
quoteCurrency {
symbol
name
}
quotePrice
}
}
}
Variables
{
"baseCurrency": "0x69420E3A3aa9E17Dea102Bb3a9b3B73dcDDB9528",
"quoteCurrency": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
}
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