Coinone query

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x9628…0fef, quote currency is 0x55d3…7955 and exchange name is Coinone, sorted by time interval minute, highest first: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 5 more fields.

By gaurav · saved 12 October 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 100, desc: "timeInterval.minute"}
      time: {before: "2021-10-11T07:39:34"}
      exchangeName: {is: "Coinone"}
      priceAsymmetry: {lteq: 1}
      baseCurrency: {is: "0x9628735017f1a985ebaac0b203efb9e8d3ed0fef"}
      quoteCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"}
    ) {
      timeInterval {
        minute(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      tradeAmount(in: USD)
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries