last price

Returns DEX trades on Ethereum and BNB Chain, where buy currency is 0x8dde…2ebc or 0x1d2f…0dbe: buy currency symbol, buy currency address, sell currency symbol, sell currency address and maximum of block.

By gaurav · saved 5 August 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($net: EthereumNetwork,$BC_array: [String!],) {
  ethereum(network: $net) {
    dexTrades(
      buyCurrency: {in: $BC_array}
    ) {
      buyCurrency {
        symbol
        address
      }
      sellCurrency{
        symbol
        address
      }
      last_price: maximum(of: block, get: price)
    }
  }
}

Variables

{
  "net":"bsc",
  "BC_array":["0x8ddeec6b677c7c552c9f3563b99e4ff90b862ebc","0x1d2f0da169ceb9fc7b3144628db156f3f6c60dbe"]
}

Similar queries