Bog/BUSD pair price

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xD7B7…0099, quote currency is 0xe9e7…7d56 and exchange name is Pancake or Pancake v2: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 5 more fields.

By gaurav · saved 30 April 2021 · Bitquery API v1

What it returns

Filters

The query

query ($baseAddress: String!, $quoteAddress: String!, $interval: Int) {
  ethereum(network: bsc) {
    dexTrades(
      date: {since: "2021-04-29"}
      baseCurrency: {is: $baseAddress}
      quoteCurrency: {is: $quoteAddress}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: $interval)
      }
      buyCurrency: baseCurrency {
        symbol
        address
      }
      buyAmount: baseAmount
      buyAmountInUsd: baseAmount
      sellCurrency: quoteCurrency {
        symbol
        address
      }
      sellAmountInUsd: quoteAmount
      tradeAmount(in: USD)
      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

{
  "baseAddress": "0xD7B729ef857Aa773f47D37088A1181bB3fbF0099",
  "quoteAddress": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
  "interval": 10
}

Similar queries