SYA - BNB ohlc

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x83A8…AD0e, quote currency is 0xbb4c…095c and date since 2022-01-04, sorted by time interval minute: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 5 more fields.

By Johnny · saved 5 January 2022 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {asc: "timeInterval.minute"}
      baseCurrency: {is: "0x83A86adf1a7c56e77d36d585B808052e0a2aAD0e"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      date: {since: "2022-01-04T15:24:57.988Z"}
    ) {
      timeInterval {
        minute(count: 5, format: "%Y-%m-%dT%H:%M:%SZ")
      }
      buyCurrency: baseCurrency {
        symbol
        address
      }
      buyAmount: baseAmount
      buyAmountInUsd: baseAmount
      sellCurrency: quoteCurrency {
        symbol
        address
      }
      sellAmountInUsd: quoteAmount
      tradeAmount(in: USD)
      volume: quoteAmount
      trades: count
      median: quotePrice(calculate: median)
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries