# Incomplete / inconsistent price data for PancakeSwap v2 transactions

**URL:** <https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72>\
**Category:** GraphQL API\
**Tags:** open\
**Created:** [May 25, 2021, 10:12am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72 "2021-05-25T10:12:20Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@dan](https://community.bitquery.io/u/dan)\
**Post date:** [May 25, 2021, 10:12am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/1 "2021-05-25T10:12:20Z")

</div>

Hello there,

I am getting very inconsistent price data for different tokens on BSC.

As I understand, [poocoin.app](https://poocoin.app) is using BitQuery as a backend, and I can see full candles at different resolutions there, including 60min for e.g. TIGER (0x8c4b3dea4247f066f3aaff7273dc97e7d4187b04) from at least 21st May, whereas from the BitQuery API I only get 20 60min candles if I filter from 1st Dec 2020 until 24th May 2021.

This is one example of many coins that I cannot get full data for.

Why is this? Is it because I’m on the “developer” free tier? Would I get full access to all data on a paid account?

Here is the query I am sending, which is exactly the same one that poocoin.app uses (copied from the API calls that their frontend makes):

```
{

```

“query”: “query GetCandleData(\n $baseCurrency: String!,\n $since: ISO8601DateTime,\n $till: ISO8601DateTime,\n $quoteCurrency: String!,\n $exchangeAddresses: [String!]\n $minTrade: Float\n $window: Int) {\n ethereum(network: bsc) {\n dexTrades(\n options: {asc: “timeInterval.minute”}\n date: {since: $since, till: $till}\n exchangeAddress: {in: $exchangeAddresses}\n baseCurrency: {is: $baseCurrency}\n quoteCurrency: {is: $quoteCurrency} # WBNB\n tradeAmountUsd: {gt: $minTrade}\n ) {\n timeInterval {\n minute(count: $window, format: “%Y-%m-%dT%H:%M:%SZ”)\n }\n baseCurrency {\n symbol\n address\n }\n quoteCurrency {\n symbol\n address\n }\n\n tradeAmount(in: USD)\n trades: count\n quotePrice\n maximum\_price: quotePrice(calculate: maximum)\n minimum\_price: quotePrice(calculate: minimum)\n open\_price: minimum(of: block, get: quote\_price)\n close\_price: maximum(of: block, get: quote\_price)\n }\n }\n}\n”,  
“variables”: {  
“baseCurrency”: “0x8c4b3dea4247f066f3aaff7273dc97e7d4187b04”,  
“quoteCurrency”: “0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c”,  
“since”: “2020-12-01T00:00:00.000Z”,  
“till”: “2021-05-24T17:00:00.000Z”,  
“window”: 60,  
“exchangeAddresses”: [  
“0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73”  
]  
}  
}

---

<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:** [May 25, 2021, 1:41pm UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/2 "2021-05-25T13:41:38Z")

</div>

Can you recreate the above API on our [IDE](http://graphql.bitquery.io/) and save it and share the link here, because I can’t read the query which you shared above.

---

<div class="post-metadata">

**Author:** ![dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@dan](https://community.bitquery.io/u/dan)\
**Post date:** [May 26, 2021, 2:03am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/3 "2021-05-26T02:03:06Z")

</div>

Here is the IDE link: [GetCandleData](https://graphql.bitquery.io/ide/8fjFbCc4aH)

Contrast the 20 or so candles that come out of this query with the data available at [https://poocoin.app/tokens/0x8c4b3dea4247f066f3aaff7273dc97e7d4187b04](https://poocoin.app/tokens/0x8c4b3dea4247f066f3aaff7273dc97e7d4187b04) (select 1h for equal comparison)

Thank you for your help!

---

<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:** [May 26, 2021, 6:40am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/4 "2021-05-26T06:40:09Z")

</div>

Check this and tell me, is this solve your problem?

> **[Get Candle data for pancake](https://graphql.bitquery.io/ide/GNTeYMGP4t)**
>
> Get Candle data for pancake

---

<div class="post-metadata">

**Author:** ![dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@dan](https://community.bitquery.io/u/dan)\
**Post date:** [May 26, 2021, 12:13pm UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/5 "2021-05-26T12:13:59Z")

</div>

Fantastic, it works!

Any idea why it doesn’t work with the exchange address but it works when the exchange name is provided?

Thank you so much 🙂

---

<div class="post-metadata">

**Author:** ![creichard](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@creichard](https://community.bitquery.io/u/creichard)\
**Post date:** [May 26, 2021, 2:51pm UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/6 "2021-05-26T14:51:31Z")

</div>

Hi, I am experiencing the same issue with my query for 5-minute candles, there are gaps and missing candles. Can you please review this query and help me identify my error.

> **[Pancake OHLC - Missing Candles](https://graphql.bitquery.io/ide/GlowJqOaXU)**
>
> Pancake OHLC but has missing candles

---

<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:** [May 27, 2021, 9:28am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/7 "2021-05-27T09:28:52Z")

</div>

Can you point out with candle is missing exactly …

---

<div class="post-metadata">

**Author:** ![CodeGod](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@CodeGod](https://community.bitquery.io/u/CodeGod)\
**Post date:** [August 28, 2021, 9:10am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/8 "2021-08-28T09:10:41Z")

</div>

I also encountered this, for example check this example:

> **[Missing candles 1 min](https://graphql.bitquery.io/ide/lQlEzzMUPo)**
>
> Get Candle data for pancake

It gives:  
1 3 5 6 8 9  
So missing 2, 4 and 7

Interestingly it works fine again with 3 min candles

---

<div class="post-metadata">

**Author:** ![CodeGod](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@CodeGod](https://community.bitquery.io/u/CodeGod)\
**Post date:** [August 28, 2021, 9:12am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/9 "2021-08-28T09:12:40Z")

</div>

Not sure if you get notified when I reply, but guess you will now, see above

---

<div class="post-metadata">

**Author:** ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)\
**Post date:** [August 30, 2021, 6:59am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/10 "2021-08-30T06:59:57Z")

</div>

It is a bug. I have raised this issue with the technical team. They will come up with a solution asap.

---

<div class="post-metadata">

**Author:** ![CodeGod](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@CodeGod](https://community.bitquery.io/u/CodeGod)\
**Post date:** [August 31, 2021, 11:51am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/11 "2021-08-31T11:51:02Z")

</div>

Thank you 🙏, hpoefully it’s not too hard to fix

---

<div class="post-metadata">

**Author:** ![CodeGod](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@CodeGod](https://community.bitquery.io/u/CodeGod)\
**Post date:** [September 25, 2021, 9:37am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/12 "2021-09-25T09:37:31Z")

</div>

It has been almost a month, any update on this? Otherwise an alternative service that can provide it?

---

<div class="post-metadata">

**Author:** ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)\
**Post date:** [September 25, 2021, 9:57am UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/13 "2021-09-25T09:57:52Z")

</div>

I am sorry for the inconvenience. This issue had been selected for development 3 weeks ago. I’ll notify you once this has been resolved or some alternate solution to this problem has been put up by the technical team. Once again, we apologize for the inconvenience caused to you.

---

<div class="post-metadata">

**Author:** ![CodeGod](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@CodeGod](https://community.bitquery.io/u/CodeGod)\
**Post date:** [October 26, 2021, 3:15pm UTC](https://community.bitquery.io/t/incomplete-inconsistent-price-data-for-pancakeswap-v2-transactions/72/14 "2021-10-26T15:15:51Z")

</div>

Doesn’t seem to be resovled, any suggestion for another query service that does have the complete data?
