Average price of apecoin

Returns one DEX trade on Ethereum, where base currency is 0x4d22…4381, quote currency is 0xa0b8…eb48 and date is 2023-01-03: quote price, base currency address, base currency name, quote currency address and quote currency name.

By gaurav · saved 10 February 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    dexTrades(
      options: {limit: $limit, offset: $offset}
      date: {is: "2023-01-03"}
      baseCurrency: {is: $token}
      quoteCurrency: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}
    ) {
      quotePrice(calculate: median)
      baseCurrency {
        address
        name
      }
      quoteCurrency {
        address
        name
      }
    }
  }
}

Variables

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

Similar queries