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.

By KP · saved 1 January 2025 · run 1 time · Bitquery API v2

What it returns

Filters

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