# GraphQL: the high price some tokens are incorrect

**URL:** https://community.bitquery.io/t/graphql-the-high-price-some-tokens-are-incorrect/1581
**Category:** GraphQL API
**Tags:** support
**Created:** [July 31, 2023, 5:03am UTC](https://community.bitquery.io/t/graphql-the-high-price-some-tokens-are-incorrect/1581 "2023-07-31T05:03:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![brucehcm](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@brucehcm](https://community.bitquery.io/u/brucehcm)
#### Post date: [July 31, 2023, 5:03am UTC](https://community.bitquery.io/t/graphql-the-high-price-some-tokens-are-incorrect/1581/1 "2023-07-31T05:03:29Z")

</div>

Hi There,  
My team had purchased API key.After that we query some tokens and got the high price some time is incorrect.Can you help to check ?  
Query of PEPE token and the response at 2023-7-30 9:20:00 the high price too high.

> **[GraphQL IDE](https://ide.bitquery.io/query/ajpjjaknqWLpCFqP)**
>
> Bitquery is analytical engine for blockchains

 ![2023-07-31 12.01.56_demo1](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/e4cdaf7c63de90ae65d89dbed3a75f2145279a8c.jpeg)

---

<div class="post-metadata">

### Author: ![Divya](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Divya](https://community.bitquery.io/u/Divya)
#### Post date: [July 31, 2023, 5:59am UTC](https://community.bitquery.io/t/graphql-the-high-price-some-tokens-are-incorrect/1581/2 "2023-07-31T05:59:58Z")

</div>

I checked the OHLC candles for PEPE-WETH at 5 minute interval

> **[pepe July30 5mins](https://ide.bitquery.io/pepe-July30-5mins)**
>
> Bitquery is analytical engine for blockchains

```auto
 {
  "ethereum": {
    "ethereum": {
      "dexTrades": [
        {
          "timeInterval": {
            "minute": "2023-07-30 09:20:00"
          },
          "sellCurrency": {
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "high": 1.4211078553814367e-9,
          "low": 7.060991807946151e-10,
          "open": "7.060991807946151e-10",
          "close": "7.060991807946151e-10"
        },
        {
          "timeInterval": {
            "minute": "2023-07-30 09:15:00"
          },
          "sellCurrency": {
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "high": 7.066642446601835e-10,
          "low": 7.066642446601835e-10,
          "open": "7.066642446601835e-10",
          "close": "7.066642446601835e-10"
        },
        {
          "timeInterval": {
            "minute": "2023-07-30 09:10:00"
          },
          "sellCurrency": {
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "high": 1.4211078553814367e-9,
          "low": 7.10676301197588e-10,
          "open": "7.10676301197588e-10",
          "close": "7.10676301197588e-10"
        },
        {
          "timeInterval": {
            "minute": "2023-07-30 09:05:00"
          },
          "sellCurrency": {
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "high": 7.102404141207973e-10,
          "low": 7.061597237952775e-10,
          "open": "7.102404141207973e-10",
          "close": "7.102404141207973e-10"
        }
      ]
    }
  }
}

```

The spike in the **2023-07-30 09:20:00** candle is due to this particular trade

[PEPE Trade](https://explorer.bitquery.io/ethereum/tx/0xf14106c4dee11ec8bf45a0400b14e76d0adb53ab317136bdd249d733354dac58/dex_trades) that happened at 2023-07-30 09:20:11

---

<div class="post-metadata">

### Author: ![brucehcm](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@brucehcm](https://community.bitquery.io/u/brucehcm)
#### Post date: [July 31, 2023, 6:31am UTC](https://community.bitquery.io/t/graphql-the-high-price-some-tokens-are-incorrect/1581/3 "2023-07-31T06:31:11Z")

</div>

Hi @Divya ,  
Thanks for your replied but I don’t understand what you mean. At the 2023-07-30 09:20:00 ,we had “high”: 1.4211078553814367e-9 can you explain more details.With the high price so the chart look too weird and other dextool I dont see this bar and dont have any transaction with that price.

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

I saw this transaction swap from PEPE to other token that isn’t USDT or ETH.

How can we know the transaction like this in bitquery and we can recalculate the price ?

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: [July 31, 2023, 2:41pm UTC](https://community.bitquery.io/t/graphql-the-high-price-some-tokens-are-incorrect/1581/4 "2023-07-31T14:41:34Z")

</div>

Please try this query

> **[PriceAsymmetry and TradeAmountUSD](https://ide.bitquery.io/PriceAsymmetry-and-TradeAmountUSD)**
>
> PriceAsymmetry and TradeAmountUSD

We are using PriceAsymmetry and TradeAmountUSD to filter out anomalies.

PriceAsymmetry - We take both sell amount and buy amount and convert them into USD independently and check their value. If we write `PriceAsymmetry: {lt: 1}` it means if there is delta between buy amount and sell amount less than 1, then consider that trade otherwise don’t consider that trade in the results.

TradeAmountUSD - Buy amount in USD + Sell Amount in USD

---

<div class="post-metadata">

### Author: ![brucehcm](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@brucehcm](https://community.bitquery.io/u/brucehcm)
#### Post date: [August 7, 2023, 2:58am UTC](https://community.bitquery.io/t/graphql-the-high-price-some-tokens-are-incorrect/1581/5 "2023-08-07T02:58:12Z")

</div>

goi it, thanks @gaurav
