# Why does quoteCurrency change?

**URL:** <https://community.bitquery.io/t/why-does-quotecurrency-change/1508>\
**Category:** GraphQL API\
**Tags:** support\
**Created:** [May 29, 2023, 11:05pm UTC](https://community.bitquery.io/t/why-does-quotecurrency-change/1508 "2023-05-29T23:05:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![twinnie](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@twinnie](https://community.bitquery.io/u/twinnie)\
**Post date:** [May 29, 2023, 11:05pm UTC](https://community.bitquery.io/t/why-does-quotecurrency-change/1508/1 "2023-05-29T23:05:51Z")

</div>

When pulling data for the BSC chain I’ve noticed that quoteCurrency is sometimes in WBNB and sometimes in USDT. Is there a reason for this? I would have thought that almost every transaction would be in WBNB.  
Is there any way of forcing one or the other for my results or do I have to handle it in code? Will a single token alternate between one or the other or will it always be only one of them?

Thanks.

_edit_  
Just to clarify, I know I can specify quoteCurrency but when I did that I found I wasn’t getting any results returned if I specified WBNB and quoteCurrency wanted to return it in USDT. Realising that I had to remove the quoteCurrency line in my query fixed a problem I was having where I was missing chunks of data. I’m planning on converting the results in my code. I’m just wondering if there’s anything else I need to know before I start pulling data.

---

<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:** [May 30, 2023, 1:11pm UTC](https://community.bitquery.io/t/why-does-quotecurrency-change/1508/2 "2023-05-30T13:11:10Z")

</div>

Please share the query you are using

---

<div class="post-metadata">

**Author:** ![twinnie](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@twinnie](https://community.bitquery.io/u/twinnie)\
**Post date:** [May 30, 2023, 2:27pm UTC](https://community.bitquery.io/t/why-does-quotecurrency-change/1508/3 "2023-05-30T14:27:01Z")

</div>

This is the one I’ve been testing with. It doesn’t return any results but if you remove the bit specifying quoteCurrency as WBNB then it produces plenty of results in USDT.

{  
ethereum(network: bsc) {  
dexTrades(  
options: {limit: 100000, asc: “timeInterval.second”}  
date: {between: [“2023-05-18T02:55:23.807900”,“2023-05-20T02:55:23.807900”]}  
exchangeName: {in: [“Pancake”, “Pancake v2”]}  
baseCurrency: {is: “0xDe51D1599339809CaFB8194189cE67d5BdcA9E9E”}  
quoteCurrency: {is: “0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c”}  
) {  
timeInterval {  
second(count: 900)  
}  
side  
baseCurrency {  
symbol  
address  
}  
baseAmount  
quoteCurrency {  
symbol  
address  
}  
quoteAmount  
trades: count  
quotePrice  
maximum\_price: quotePrice(calculate: maximum)  
minimum\_price: quotePrice(calculate: minimum)  
open\_price: minimum(of: block, get: quote\_price)  
close\_price: maximum(of: block, get: quote\_price)  
tradeAmount(in: USD)  
}  
}  
}

---

<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:** [May 31, 2023, 6:24am UTC](https://community.bitquery.io/t/why-does-quotecurrency-change/1508/4 "2023-05-31T06:24:27Z")

</div>

Removing/adding the `quoteCurrency` is not the problem. There is probably no trade against WBNB in the period. Check here [Decentralized Exchange Order Tracker | BscScan](https://bscscan.com/dextracker?q=0xde51d1599339809cafb8194189ce67d5bdca9e9e&p=5)

When I mention USDT as the `quoteCurrency`, I can see the trades

```auto
{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10, asc: "timeInterval.second"}
      date: {between: ["2023-05-18T02:55:23.807900", "2023-05-20T02:55:23.807900"]}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0xDe51D1599339809CaFB8194189cE67d5BdcA9E9E"}
      quoteCurrency:{is: "0x55d398326f99059ff775485246999027b3197955"}
     
    ) {
      timeInterval {
        second(count: 900)
      }
      side
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
      tradeAmount(in: USD)
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![twinnie](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@twinnie](https://community.bitquery.io/u/twinnie)\
**Post date:** [June 3, 2023, 10:11pm UTC](https://community.bitquery.io/t/why-does-quotecurrency-change/1508/5 "2023-06-03T22:11:17Z")

</div>

Thanks, this is clear now. I thought that all BSC trades were done in WBNB and that was where my confusion came from. I see now that this filters the trades to the certain currency and that there was more going on that I couldn’t see.
