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