Queries are returning inverted results for trades

I’m trying to get all trades from wallet and started it with my own address to debug it.

I noticed that the results are being returned wrong, the coins I bought return as sold and the coins I sold return as bought:

{
  ethereum(network: bsc) {
    dexTrades (makerOrTaker: {is: "0x8BE117a6D626E41F57ACC95F79af6Ba396b376aD"},
    exchangeName: {in: ["Pancake", "Pancake v2"]}){
      block {
        height
        timestamp {
          time
        }
      }
      transaction {
        hash
      }
      buyAmount
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellCurrency {
        symbol
        address
      }
    }
  }
}

image
In that screenshot we can see my first trade, i bought CAKE using BNB but the query says i sold CAKE. That happens for all trades.

For Uniswap we consider them as makers. Side is defined by order, which is maker side, So yes, it is reverted for Uniswap

You can consider that like Uniswap created an order selling.buying currency and you closing it. Actually there. are no orders in Uniswap, but to make unified API with other DEXes where taker/maker present, we support the same model.