# Get OHLC in USD | Get LP Pair

**URL:** <https://community.bitquery.io/t/get-ohlc-in-usd-get-lp-pair/338>\
**Category:** GraphQL API\
**Tags:** support, closed\
**Created:** [July 20, 2021, 8:30pm UTC](https://community.bitquery.io/t/get-ohlc-in-usd-get-lp-pair/338 "2021-07-20T20:30:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitquery-support](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@bitquery-support](https://community.bitquery.io/u/bitquery-support)\
**Post date:** [July 20, 2021, 8:30pm UTC](https://community.bitquery.io/t/get-ohlc-in-usd-get-lp-pair/338/1 "2021-07-20T20:30:07Z")

</div>

Currently to get the ohlc data im using this query:

```auto
{
          ethereum(network: bsc) {
            dexTrades(
              options: {asc: "timeInterval.hour"}
              date: {since: "2021-07-17"}
              baseCurrency: {is: "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"}
              quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
            ) {
              timeInterval {
              hour
              }
              baseCurrency{
                  symbol
                  address
              }

              high: quotePrice(calculate: maximum)
              low: quotePrice(calculate: minimum)
              open: minimum(of: block, get: quote_price)
              close: maximum(of: block, get: quote_price)
            }
          }
  }

```

It is functional, but how could i get the data in USD? so i know i would have to get the price of wbnb but how to get it in the same query?

And how can i get the largest lp pair of each token depending on the network?

---

<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 21, 2021, 12:10pm UTC](https://community.bitquery.io/t/get-ohlc-in-usd-get-lp-pair/338/2 "2021-07-21T12:10:05Z")

</div>

> [@Token Price in USD for Binance Smart Chain](https://community.bitquery.io/t/token-price-in-usd-for-binance-smart-chain/44):
>
> Hi I am trying to get the USDT price of my BEP20 token and it returns null. This is the query I used to get the USDT value of my coin (SHIKO). So this is done as SHIKO - BNB - USDT(BinancePegged). query ($baseAddress: String!, $quoteAddress: String!, $connector1: String!, $from: ISO8601DateTime!, $interval: Int){ ethereum(network: bsc){ dexTrades( any: [ { baseCurrency: {is: $baseAddress} quoteCurrency: {is: $quoteAddress}}, { baseCurrency: {is: $baseAddress} quoteCurrency: {is: $…

Check this
