iEthereum Paxos Gold Trade Pair
Returns the latest DEX trade on Ethereum, where base currency is 0x859a…4b4B and quote currency is 0x4580…Af78: block height, timestamp time, base currency symbol, quote currency symbol, quote price, quote amount, base amount and 4 more fields.
What it returns
- block height
- timestamp time
- base currency symbol
- quote currency symbol
- quote price
- quote amount
- base amount
- expression
- full name with ID
- address address
- annotation
Filters
- base currency is 0x859a…4b4B
- quote currency is 0x4580…Af78
The query
query get_token_price_in_usd($token: String) {
ethereum(network: ethereum) {
dexTrades(
baseCurrency: {is: $token}
quoteCurrency: {is: "0x45804880De22913dAFE09f4980848ECE6EcbAf78"}
options: {desc: ["block.height"], limit: 1}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
baseCurrency {
symbol
}
quoteCurrency {
symbol
}
quotePrice
quoteAmountInUSD: quoteAmount(in: USD)
baseAmount
quotePriceInUSD: expression(get: "quoteAmountInUSD / baseAmount")
exchange {
fullNameWithId
address {
address
annotation
}
}
}
}
}
Variables
{
"token": "0x859a9C0b44cb7066D956a958B0b82e54C9e44b4B"
}
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