# https://graphql.bitquery.io/ide/kmYKF238fx

**URL:** <https://community.bitquery.io/t/https-graphql-bitquery-io-ide-kmykf238fx/308>\
**Category:** GraphQL API\
**Tags:** support, closed\
**Created:** [July 12, 2021, 2:27am UTC](https://community.bitquery.io/t/https-graphql-bitquery-io-ide-kmykf238fx/308 "2021-07-12T02:27:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![huangwenxiansheng](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@huangwenxiansheng](https://community.bitquery.io/u/huangwenxiansheng)\
**Post date:** [July 12, 2021, 2:27am UTC](https://community.bitquery.io/t/https-graphql-bitquery-io-ide-kmykf238fx/308/1 "2021-07-12T02:27:40Z")

</div>

The base currency of this contract address should be minidog, and the quotecurrency is usdt, but now it is the opposite. How can I solve this problem

dexTrades(  
exchangeName: {in: [“Pancake”, “Pancake v2”]}  
smartContractAddress: {is: “0x3702d000a74fab51a1b4d362d069309a38c450ec”}  
options: {desc: [“block.height”, “transaction.index”], limit: 1}  
) {  
block {  
height  
timestamp {  
time(format: “%Y-%m-%d %H:%M:%S”)  
}  
}  
transaction {  
index  
}  
baseCurrency {  
symbol  
}  
quoteCurrency {  
symbol  
}  
quotePrice  
}

---

<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 12, 2021, 3:23am UTC](https://community.bitquery.io/t/https-graphql-bitquery-io-ide-kmykf238fx/308/2 "2021-07-12T03:23:03Z")

</div>

hi @huangwenxiansheng I just ran this query on the GraphQL IDE and it seems the results are as you said they should have been. Attaching a screenshot for the same.

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

```auto
{
  ethereum(network: bsc) {
    dexTrades(
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      smartContractAddress: {is: "0x3702d000a74fab51a1b4d362d069309a38c450ec"}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![huangwenxiansheng](https://avatars.discourse-cdn.com/v4/letter/h/b3f665/32.png) [@huangwenxiansheng](https://community.bitquery.io/u/huangwenxiansheng)\
**Post date:** [July 12, 2021, 3:27am UTC](https://community.bitquery.io/t/https-graphql-bitquery-io-ide-kmykf238fx/308/3 "2021-07-12T03:27:33Z")

</div>

How to solve this problem

---

<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 17, 2021, 6:10am UTC](https://community.bitquery.io/t/https-graphql-bitquery-io-ide-kmykf238fx/308/4 "2021-07-17T06:10:42Z")

</div>

What I meant earlier was that the desired results are being displayed. Maybe there must be some error earlier when you ran the query.
