tv weth saitama

trading view chart

Returns DEX trades on Ethereum, where base currency is 0xc02a…6cc2, quote currency is 0x8b31…f73f and protocol is Uniswap v2: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By spendil · saved 16 November 2021 · run 41 times · Bitquery API v1

What it returns

Filters

The query


  query(
    $baseAddress: String
    $quoteAddress: String
    $from: ISO8601DateTime!
    $to: ISO8601DateTime!
    $interval: Int
    $protocol: String
    $exchangeName: String
  ) {
    ethereum(network: ethereum) {
      dexTrades(
        protocol: { is: $protocol }
        baseCurrency: { is: $baseAddress }
        quoteCurrency: { is: $quoteAddress }
        date: { between: [$from, $to] }
        exchangeName: { is: $exchangeName }
        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": "2021-10-03T00:15:33+03:00",
  "to": "2021-11-16T00:00:00+02:00",
  "interval": 30,
  "baseAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "quoteAddress": "0x8b3192f5eebd8579568a2ed41e6feb402f93f73f",
  "protocol": "Uniswap v2",
  "exchangeName": "Uniswap"
}

Similar queries