TestQuery

Returns DEX trades on Ethereum and BNB Chain, where exchange address is 0xcA14…0c73, date since 2021-08-24 and date till 2021-08-25: minute, base currency symbol, base currency address, quote currency symbol, quote currency address, trade amount, quote amount and 4 more fields.

By Brett · saved 25 August 2021 · Bitquery API v1

What it returns

Filters

The query

{ethereum(network: bsc) {
    dexTrades(
      date: {since: "2021-08-24", till: "2021-08-25"}
      tradeAmountUsd: {gt: 10}
      exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
      any: [
            {
                    baseCurrency: { is: "0xB09FE1613fE03E7361319d2a43eDc17422f36B09" }
                    quoteCurrency: { is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c" }
            }
            {
                    baseCurrency: { is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c" }
                    quoteCurrency: { is: "0xe9e7cea3dedca5984780bafc599bd69add087d56" }
            }
          ]
    ) {
      timeInterval {
        minute(count: 15)
      }
      buyCurrency: baseCurrency {
        symbol
        address
      }
      sellCurrency: quoteCurrency {
        symbol
        address
      }
      tradeAmount(in: USD)
      volume: quoteAmount
      trades: count
      maximum: quotePrice(calculate: maximum)
      minimum: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)

    }
  }
}

Similar queries