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

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
}

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.

{
  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
    }
  }
}

How to solve this problem

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