# Latest price of a token - does not work for some

**URL:** <https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [June 27, 2021, 5:00pm UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239 "2021-06-27T17:00:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TCrap](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@TCrap](https://community.bitquery.io/u/TCrap)\
**Post date:** [June 27, 2021, 5:00pm UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239/1 "2021-06-27T17:00:56Z")

</div>

Hi Folks,

I’m trying to fetch the price of some tokens. Poocoin got data points and it’s also old enough to be within bitquery’s dataset. Deleting the quotecurrency didn’t help.

That would be an non working example query for token: 0x7f77cc163c5cb572aa6851557398e296bad95e5b. However it works for other tokens with more trades

```auto
{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height","tradeIndex"], limit: 1}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0x7f77cc163c5cb572aa6851557398e296bad95e5b"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
      date: {after: "2021-04-28"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
   
    }
  }
}

```

Any hints are appreciated! Thanks!

---

<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:** [June 28, 2021, 6:44am UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239/2 "2021-06-28T06:44:55Z")

</div>

Should have removed the date filter too

```auto
{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height","tradeIndex"], limit: 1}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0x7f77cc163c5cb572aa6851557398e296bad95e5b"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
   
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![TCrap](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@TCrap](https://community.bitquery.io/u/TCrap)\
**Post date:** [June 28, 2021, 8:30am UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239/3 "2021-06-28T08:30:03Z")

</div>

Thanks for your answer. Actually datapoints are within the posted query now. I might should wait longer to fetch the prices

---

<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:** [June 28, 2021, 12:47pm UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239/4 "2021-06-28T12:47:26Z")

</div>

didn’t understand, is that a question or you need a more optimized query?

---

<div class="post-metadata">

**Author:** ![TCrap](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@TCrap](https://community.bitquery.io/u/TCrap)\
**Post date:** [June 29, 2021, 11:40am UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239/5 "2021-06-29T11:40:01Z")

</div>

No, I think the tokens I want to get the price info for are not within bitquerys dataset. They will get into sometime after however.

Another example for the moment would be this token: 0x6b882a1949101acfcbf0f8ebe5daf769a2d37de2

For now poocoin shows me something, bitquery says there are no datapoints (regardless which query I use).

Thus I just need to wait till the data are within your dataset.

[Poocoin Screenshot](https://ibb.co/jGwJ2hg)  
[Bitquery Screenshot](https://ibb.co/r4mpBPQ)

---

<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:** [June 30, 2021, 6:30am UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239/6 "2021-06-30T06:30:16Z")

</div>

Is this token only on Pancake? We have a little delay check here [https://bloxy.info/status](https://bloxy.info/status)

However, we are building a new real-time system which will solve this.

---

<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:** [July 9, 2021, 7:04am UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239/7 "2021-07-09T07:04:45Z")

</div>



---

<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:** [July 28, 2021, 7:29pm UTC](https://community.bitquery.io/t/latest-price-of-a-token-does-not-work-for-some/239/8 "2021-07-28T19:29:34Z")

</div>


