5-minute PVT

Returns 10000 DEX trades on Ethereum and BNB Chain, where base currency is 0xd4d2…476d, quote currency is 0xbb4c…095c and time since 2021-08-03, 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 30 July 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-03"}
      baseCurrency: {is: "0xd4d2abbef1b26458504e7027233d5e7f09ea476d"}
      #quoteCurrency: {is: "0x0db566a6bf63b91e720dfabd1b487c52352ec5af"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      
    ) {
      timeInterval {
        minute(count: 5)
      }
      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