Latest price of DRIP for all its pairs

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x20f6…0333, date since 2023-01-01 and date till 2023-02-27, sorted by block height trade index: timestamp time, block height, trade index, quote currency address, quote currency symbol and quote price.

By gaurav · saved 27 February 2023 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset, limitBy: {each: "quoteCurrency.address", limit: 1}}
      date: {since: $from, till: $till}
      baseCurrency: {is: $token}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      quoteCurrency {
        address
        symbol
      }
      quotePrice
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 0,
  "network": "bsc",
  "token": "0x20f663cea80face82acdfa3aae6862d246ce0333",
  "from": "2023-01-01",
  "till": "2023-02-27T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries