GetPrice

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0xEF33…4407 and quote currency is 0xbb4c…095c, sorted by quote currency symbol: quote currency symbol, quote currency name, quote currency address, base currency symbol, base currency address, base currency name, quote price and maximum of block.

By gryndanya · saved 29 November 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query (
  $network: EthereumNetwork!, 
  $wbnb: String!, 
  $token00: String!,  
  $limit: Int!, 
) {
  ethereum(network: $network) {
    count0: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token00}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "limit": 10,
  "network": "bsc",
  "token00": "0xEF3330aB2E4B84Bb9F5A59799D7eEfD2868c4407",
  "wbnb": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
}

Similar queries