iEthereum price in Paxos Gold

This API provides the latest iEthereum token price in Paxos Gold for Ethereum blockchain using DEXs like Uniswap, Balancer. You can also get the price of iEthereum Token at any previous date or time. You can also specify a specific exchange to get the price from using the filter.

By KP · saved 1 January 2025 · Bitquery API v1

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