Get latest price of WBTC in USD on optimism

Retrieves the USD price of a token on Optimism by setting `SmartContract: {is: "0x68f180fcCe6836688e9084f035309E29Bf0A2095"}` . Check the field `PriceInUSD` for the USD value. You can access the query. Trading cube - MEV-filtered trades with USD prices on every row.

By Akshat · saved 24 April 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Trading {
    Pairs(
      where: {
        Token: {
          Network: { is: "Optimism" }
          Address: { is: "0x68f180fcce6836688e9084f035309e29bf0a2095" }
        },
        Price: { IsQuotedInUsd: true },
        Ranking: { Position: { eq: 1 } }
      }
    ) {
      Block { Time }
      Token { Symbol Name Address }
      QuoteToken { Symbol }
      Market { Name Protocol }
      Ranking { Position }
      Price { Ohlc { Open High Low Close } IsQuotedInUsd }
      Volume { Usd }
    }
  }
}

Similar queries