GET OHLC - Share

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x2170…33f8, quote currency is 0x55d3…7955 and exchange address is 0xca14…0c73, sorted by time interval minute: minute, quote amount, count, quote price, minimum of block and maximum of block.

By minhthien309 · saved 20 December 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
        protocol: {is: "Uniswap v2"}
        options: {asc: "timeInterval.minute"}
        date: {since: "2021-12-17T17:00:00"}
        time: {since: "2021-12-17T17:00:00"}
        baseCurrency: {is: "0x2170ed0880ac9a755fd29b2688956bd959f933f8"},
        quoteCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"},
        exchangeAddress: {is: "0xca143ce32fe78f1f7019d7d551a6402fc5350c73"},
        priceAsymmetry: {lt: 0.7}
        any: [{tradeAmountUsd: {gt: 0.00001}}, {tradeAmountUsd: {is: 0}}]
    ) 
    {
        timeInterval {
            minute(count: 15)  
        }
        volume: quoteAmount
        trades: count
        high: quotePrice(calculate: maximum)
        low: quotePrice(calculate: minimum)
        open: minimum(of: block, get: quote_price)
        close: maximum(of: block, get: quote_price) 
    }
  }
}

Similar queries