Lawyer Ai OHLC

Returns DEX trades on Ethereum, where base currency is 0x3ce3…ad2A, quote currency is 0xC02a…6Cc2 and date after 2023-01-04: hour, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By Divyasshree N · saved 30 January 2023 · run 21 times · Bitquery API v1

What it returns

Filters

The query

query ($token: String) {
  ethereum(network: ethereum) {
    
    dexTrades(
      baseCurrency: { is: $token}
      quoteCurrency: { is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" }
      date: { after: "2023-01-04", before: "2023-01-30" }
    ) {
      timeInterval {
        
        hour
      }
       baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      volume: quoteAmount(in: USD)
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{"token": "0x3ce38BC4dF7112E3944d724572E42B0cB805ad2A"}

Similar queries