PriceAsymmetry and TradeAmountUSD

Returns 500 DEX trades on Ethereum, where base currency is 0x6982…1933, quote currency is 0xc02a…6cc2 and date since 2023-07-30, sorted by time interval minute, highest first: minute, quote currency address, quote price, minimum of date and maximum of date.

By gaurav · saved 31 July 2023 · run 12 times · Bitquery API v1

What it returns

Filters

The query

query ($baseAddress: String, $interval: Int) {
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: $baseAddress}
      date: {since: "2023-07-30", till: "2023-07-30"}
      options: {limit: 500, desc: "timeInterval.minute"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      tradeAmountUsd: {gt: 100}
      priceAsymmetry: {lt: 1}
    ) {
      timeInterval {
        minute(count: $interval)
      }
      sellCurrency: quoteCurrency {
        address
      }
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: date, get: quote_price)
      close: maximum(of: date, get: quote_price)
    }
  }
}

Variables

{
  "interval": 5,
  "baseAddress": "0x6982508145454ce325ddbe47a25d4ec3d2311933"
}

Similar queries