weth quote price against usdc

weth price against usdc

Returns one DEX trade on Ethereum, where base currency is 0xc02a…6cc2, quote currency is 0xa0b8…eb48 and date is 2023-05-08: timestamp time, block height, protocol, full name, base amount, base currency address, base currency symbol and 5 more fields.

By Omkar Acharekar · saved 8 May 2023 · run 12 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!,  $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    dexTrades(
      options: {limit: $limit, offset: $offset}
      baseCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      quoteCurrency: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}
      date : {is : "2023-05-08"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      protocol
      exchange {
        fullName
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      quotePrice
      quote_amount_usd: quoteAmount(in: USD)
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 1,
  "offset": 0,
  "network": "ethereum",
  "dateFormat": "%Y-%m-%d"
}

Similar queries