bscOHLC

Returns 100000 DEX trades on Ethereum and BNB Chain, where base currency is 0x81f7…894a, quote currency is 0xbb4c…095c and exchange name is Pancake v2, sorted by time interval minute: minute, quote price, minimum of block and maximum of block.

By Ebrahim · saved 9 May 2022 · run 34 times · Bitquery API v1

What it returns

Filters

The query

query bscOHLC (
  $network: EthereumNetwork!
  $limit: Int!
  $exchangeName: String!
  $date_since: ISO8601DateTime!
  $baseCurrency: String!
  $quoteCurrency: String!
  $timeInterval: Int=5
) 
  {
  ethereum(network: $network) {
    dexTrades(
      options: {limit: $limit, asc: "timeInterval.minute"}
      date: {since: $date_since}
      exchangeName: {is: $exchangeName}
      baseCurrency: {is: $baseCurrency}
      quoteCurrency: {is: $quoteCurrency}
    ) {
      
      timeInterval {
        minute(count: $timeInterval) 
        
      }

      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
    
  }
}

Variables

{
  "network": "bsc",
  "limit": 100000 ,
  "exchangeName": "Pancake v2" ,
  "baseCurrency": "0x81f7bbfc362994badcdcae1b38d426be4d82894a" ,
  "quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c" ,
  "date_since": "2022-01-01" ,
  "timeInterval": 15
}

Similar queries