5-minute PVT

Returns 10000 DEX trades on Ethereum and BNB Chain, where base currency is 0x87c9…2008, quote currency is 0xbb4c…095c and time since 2021-08-17, sorted by time interval minute, highest first: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, trade amount and 5 more fields.

By haxtuf · saved 17 August 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10000, desc: "timeInterval.minute"}
      time: {since: "2021-08-17"}
      baseCurrency: {is: "0x87c91dd4552c67a4b82f8008fa08458ca5e62008"}
      #quoteCurrency: {is: "0x0db566a6bf63b91e720dfabd1b487c52352ec5af"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      
    ) {
      timeInterval {
        minute(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency(quoteCurrency: {}) {
        symbol
        address
      }
      tradeAmount(in: USD)
      trades: count
      price: quotePrice
      volume: quoteAmount
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      median_price: quotePrice(calculate: median)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries