# Getting accurate data about new tokens

**URL:** https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369
**Category:** GraphQL API
**Created:** [January 29, 2023, 3:36pm UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369 "2023-01-29T15:36:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![abcd](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@abcd](https://community.bitquery.io/u/abcd)
#### Post date: [January 29, 2023, 3:36pm UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/1 "2023-01-29T15:36:10Z")

</div>

Hi there!  
I’m hoping to get accurate data on new tokens like $Ai ( 0x3ce38bc4df7112e3944d724572e42b0cb805ad2a ) using bitQuery APIs, I would need to get 24H volume, total market cap and the max price of the currency, It’s a couple of days that I’m trying to come out with a query but I’m not used to GraphQL and the data I’m retrieving seems incorrect.

For instance, trying to get the market cap of the coin mentioned above:

```auto
{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0x3ce38bc4df7112e3944d724572e42b0cb805ad2a"}) {
      tradeAmount(in: USD)
    }
  }
}

```

I’m getting “456,744” as a value while on [DEXView - Realtime Price Charts](https://www.dexview.com/eth/0x3ce38BC4dF7112E3944d724572E42B0cB805ad2A) I see “71,600”

I would need those queries to be as dynamic as possible since the user will need to insert the contract address.

Thank you all in advance for the help.

---

<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: [January 30, 2023, 7:30am UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/2 "2023-01-30T07:30:47Z")

</div>

Hello,

The query you have used is incorrect. Please check [this query](https://graphql.bitquery.io/ide/Lawyer-Ai-Market-Cap)  
and let me know if you have the details.

---

<div class="post-metadata">

### Author: ![abcd](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@abcd](https://community.bitquery.io/u/abcd)
#### Post date: [January 30, 2023, 8:01am UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/3 "2023-01-30T08:01:23Z")

</div>

Thank you for the kind reply.

That’s pretty much what I need, but I don’t really understand how to get the all time high price, I guess that it is something from this part of query:

```auto
history {
          value
          transferAmount
          timestamp
          block
        }

```

But I get multiple values and they don’t make much sense to me. Can you help?

---

<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: [January 30, 2023, 9:58am UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/4 "2023-01-30T09:58:38Z")

</div>

You have to use dexTrades API for that. For getting OHLC use appropriate timeframe in **timeInterval** parameters.  
[Lawyer-Ai-OHLC](https://graphql.bitquery.io/ide/Lawyer-Ai-OHLC) → this is the query

---

<div class="post-metadata">

### Author: ![abcd](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@abcd](https://community.bitquery.io/u/abcd)
#### Post date: [January 30, 2023, 3:38pm UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/5 "2023-01-30T15:38:57Z")

</div>

Thank you very much, just another thing. The values provided are pairs with the quoteCurrency. Is that right?  
How can I get the price in $ by knowing the value of one of the pair currencies ( in this case WETH )?

---

<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: [January 31, 2023, 2:22pm UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/6 "2023-01-31T14:22:10Z")

</div>

use (in: USD) in the parameters

> quoteAmount(in: USD)  
> tradeAmount(in: USD)

---

<div class="post-metadata">

### Author: ![abcd](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@abcd](https://community.bitquery.io/u/abcd)
#### Post date: [February 1, 2023, 7:32am UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/7 "2023-02-01T07:32:07Z")

</div>

Umh, I really get high values with those, what about the Highs and Lows, are them in dollars?  
Thank you.

---

<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: [February 1, 2023, 1:25pm UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/8 "2023-02-01T13:25:10Z")

</div>

All values by default are calculated against WETH.

---

<div class="post-metadata">

### Author: ![abcd](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@abcd](https://community.bitquery.io/u/abcd)
#### Post date: [February 1, 2023, 1:51pm UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/9 "2023-02-01T13:51:16Z")

</div>

And how do I get the minimum and maximum in dollars? Thank you

---

<div class="post-metadata">

### Author: ![abcd](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@abcd](https://community.bitquery.io/u/abcd)
#### Post date: [February 2, 2023, 5:35pm UTC](https://community.bitquery.io/t/getting-accurate-data-about-new-tokens/1369/10 "2023-02-02T17:35:22Z")

</div>

Here I tried to multiply the given value by the current value of WETH in dollars but that doesn’t seem to work. Do you have any ideas?
