# Pancake OHLC query wBNB/BUSD problem

**URL:** <https://community.bitquery.io/t/pancake-ohlc-query-wbnb-busd-problem/982>\
**Category:** GraphQL API\
**Created:** [April 13, 2022, 2:39am UTC](https://community.bitquery.io/t/pancake-ohlc-query-wbnb-busd-problem/982 "2022-04-13T02:39:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonnh](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@sonnh](https://community.bitquery.io/u/sonnh)\
**Post date:** [April 13, 2022, 2:39am UTC](https://community.bitquery.io/t/pancake-ohlc-query-wbnb-busd-problem/982/1 "2022-04-13T02:39:42Z")

</div>

Hi,  
Hi team i am using Pancake OHLC query wBNB/BUSD, but minimum\_price value is too low and not same as poocoin chart.

```auto
{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 100, asc: "timeInterval.hour"}
      time: {since: "2022-04-12T08:00:00Z", till: "2022-04-12T09:00:00Z"}
      exchangeName: {is: "Pancake v2"}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      timeInterval {
        hour(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      median_price: quotePrice(calculate: median)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

```

Here is the result

```auto
{
  "ethereum": {
    "dexTrades": [
      {
        "timeInterval": {
          "hour": "2022-04-12 08:00:00"
        },
        "baseCurrency": {
          "symbol": "WBNB",
          "address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
        },
        "baseAmount": 4726.237471631324,
        "quoteCurrency": {
          "symbol": "BUSD",
          "address": "0xe9e7cea3dedca5984780bafc599bd69add087d56"
        },
        "quoteAmount": 1926802.435557004,
        "trades": 3743,
        "quotePrice": 407.68210381353146,
        "maximum_price": 409.41163211695823,
        "minimum_price": 202.92263571706536,
        "median_price": 407.88000362531847,
        "open_price": "408.12729037280536",
        "close_price": "408.77829260320027"
      }
    ]
  }
}

```

**"minimum\_price": 202.92263571706536,**

Poocoin chart [PooCoin BSC Charts](https://poocoin.app/tokens/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/841fd405e7daffd44e8a555541b882b45d6dd99a.jpeg)

How can i query same as Poocoin?

---

<div class="post-metadata">

**Author:** ![aman](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aman](https://community.bitquery.io/u/aman)\
**Post date:** [April 13, 2022, 7:26pm UTC](https://community.bitquery.io/t/pancake-ohlc-query-wbnb-busd-problem/982/2 "2022-04-13T19:26:07Z")

</div>

Everyone has a different method of ohlc, poocoin has their own mechanism. We provide them with the data, we are not sure about their technological workings. If you think there is a problem with the data, you can match that with the transaction hash to check if there is appropriate data.

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [April 14, 2022, 7:07am UTC](https://community.bitquery.io/t/pancake-ohlc-query-wbnb-busd-problem/982/3 "2022-04-14T07:07:06Z")

</div>

Ok, After investigation, there is a transaction at 8.32 … which has 4 trades

[https://bscscan.com/tx/0x86151ecce8356e0ff61dd9063d772a051b16c308cec29b3f4eaf8fb4e43485ca](https://bscscan.com/tx/0x86151ecce8356e0ff61dd9063d772a051b16c308cec29b3f4eaf8fb4e43485ca)

> **[Binance Smart Chain Mainnet DEX Trades](https://explorer.bitquery.io/bsc/tx/0x86151ecce8356e0ff61dd9063d772a051b16c308cec29b3f4eaf8fb4e43485ca/dex_trades)**
>
> Trades on decentralised exchanges (DEX), smart contracts on Binance Smart Chain Mainnet

> **[trades for a transaction](https://graphql.bitquery.io/ide/trades-for-a-transaction)**
>
> trades for a transaction

Here if you see in 1 swap… you can see the base and quote amount… because of it the price came 202.92263571706536

I don’t think there is way to remove this transaction using any filter for now. other then hardcoding the transaction itself… but data is correct

---

<div class="post-metadata">

**Author:** ![sonnh](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@sonnh](https://community.bitquery.io/u/sonnh)\
**Post date:** [April 15, 2022, 8:28am UTC](https://community.bitquery.io/t/pancake-ohlc-query-wbnb-busd-problem/982/4 "2022-04-15T08:28:52Z")

</div>

i have added  
`priceAsymmetry: {lteq: 0.1}`

then wBNB/BUSD data will be same as poocoin  
but `0.1` is not correct with every other tokens, how can i choose this value
