GetRealTimeTokenInfo

Get real time details of specific Tokens on pancakeSwap as per request

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, exchange name is Pancake or Pancake v2 and date since 2022-06-12, sorted by trade index block height, highest first: date date, block height, trade index, base amount, base currency symbol, quote amount, quote currency symbol and 5 more fields.

By Sayon Sai Dutta · saved 14 June 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc){
    latestPrice: dexTrades(
      date: {since: "2022-06-12"}
      options: {limit: 1, desc: ["tradeIndex", "block.height"]}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ){
      date{
        date
      }
      block{
        height
      }
      tradeIndex
      baseAmountInBNB: baseAmount(in: BNB)
      baseAmount
      baseCurrency{
        symbol
      }
      quoteAmountInBNB: quoteAmount(in: BNB)
      quoteAmount
      quoteCurrency{
        symbol
      }
      quotePrice
      smartContract{
        currency{
          name
          symbol
          tokenType
        }
        protocolType
      }
    }
    historicPrice: dexTrades(
      date: {since: "2022-06-01"}
      options: {limit: 100, desc: ["tradeIndex", "block.height"]}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ){
      block{
        height
      }
      tradeIndex
      baseAmountInBNB: baseAmount(in: BNB)
      baseAmount
      baseCurrency{
        symbol
      }
      quoteAmountInBNB: quoteAmount(in: BNB)
      quoteAmount
      quoteCurrency{
        symbol
      }
      quotePrice
    }
  }
}

Similar queries