m31 wbnb trading view

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xb46a…2414, quote currency is 0xbb4C…095c and price asymmetry is below 0.7: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By Jaco · saved 11 February 2022 · run 2 times · Bitquery API v1

What it returns

Filters

The query


  query(
    $baseAddress: String
    $quoteAddress: String
    $from: ISO8601DateTime!
    $to: ISO8601DateTime!
    $interval: Int

  ) {
    ethereum(network: bsc) {
      dexTrades(
        baseCurrency: { is: $baseAddress }
        quoteCurrency: { is: $quoteAddress }
        time: { between: [$from, $to] }
        priceAsymmetry: { lt: 0.7 }
        any: [
          {tradeAmountUsd: { gt: 0.00001 }},
          {tradeAmountUsd: { is: 0 }}
        ]
      ) {
        timeInterval {
          minute(format:"%FT%TZ", count: $interval)
        }
        buyCurrency: baseCurrency {
          symbol
          address
        }
        buyAmount: baseAmount
        sellCurrency: quoteCurrency {
          symbol
          address
        }
        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)
      }
    }
  }

Variables

{
  "from": "2022-01-03T00:15:33+03:00",
  "to": "2022-02-16T00:00:00+02:00",
  "interval": 30,
  "baseAddress": "0xb46acb1f8d0ff6369c2f00146897aea1dfcf2414",
  "quoteAddress": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
}

Similar queries