Price for token on bsc pancake

Returns 9 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0x81a2…3ef2 and quote currency is 0xd8f9…5e31, 0x9b93…4454 or 2 more, sorted by quote currency symbol: quote currency symbol, quote currency name, quote currency address, base currency symbol, base currency address, base currency name, base amount and 3 more fields.

By JoyDis · saved 27 April 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    count0:dexTrades(
      exchangeName: {is: "Pancake"}
      options: {limit: 9, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0x81a2ac1a5ee681af6113ed440f1e378d46c23ef2"}
    ) {
        quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      baseAmount
      quoteAmount
      trades: count
      quotePrice
      median_price: quotePrice(calculate: median)
    }
    count2:dexTrades(
      exchangeName: {is: "Pancake"}
      options: {limit: 9, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {in: ["0xd8f90438DDd9e99B581F49257D078E8E39fC5e31", "0x9b93c29595dd603f75854eba3c5f4ee078ee4454", "0x72eb1afddb5652e0f5c7b9a6cc1c3241348b16c6", "0x98fc5b3a39d712fa5a826df4f9c47bb6c0f6f8a9"]}
    ) {
        quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      baseAmount
      quoteAmount
      trades: count
      quotePrice
      median_price: quotePrice(calculate: median)
    }
  }
}

Similar queries