Floki TradingView

Floki WBNB TradingView

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xfb5b…d37e, 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 three · saved 16 June 2022 · run 26 times · Bitquery API v1

What it returns

Filters

The query

query ($baseAddress: String, $quoteAddress: String, $interval: Int, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: bsc) {
    dexTrades(
      baseCurrency: {is: $baseAddress}
      quoteCurrency: {is: $quoteAddress}
      date: {since: $from, till: $till}
      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": null,
  "till": null,
  "interval": 30,
  "baseAddress": "0xfb5b838b6cfeedc2873ab27866079ac55363d37e",
  "quoteAddress": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
}

Similar queries