# Help with dextrades sell orders not showing tradeAmount

**URL:** <https://community.bitquery.io/t/help-with-dextrades-sell-orders-not-showing-tradeamount/390>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [August 10, 2021, 2:31am UTC](https://community.bitquery.io/t/help-with-dextrades-sell-orders-not-showing-tradeamount/390 "2021-08-10T02:31:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tylersisia](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@tylersisia](https://community.bitquery.io/u/tylersisia)\
**Post date:** [August 10, 2021, 2:31am UTC](https://community.bitquery.io/t/help-with-dextrades-sell-orders-not-showing-tradeamount/390/1 "2021-08-10T02:31:50Z")

</div>

I am making a page that displays a trading volume leaderboard for a specified time frame and specific tokens. Basically I want it to show highest trading volume by wallet for the specific timeframe to include all buy and sell orders for two specific tokens. I have my query set up and it works great, but it is only showing buy orders. My query: [ITM/RITM Trading Volume](https://graphql.bitquery.io/ide/d8ZoED6jdo)  
I know why it is only showing the buying trade volume, it is because of the way the tokens function on sell orders. When a wallet places a sell order it is not actually performing a swap function as it does for a buy order, instead the wallet transfers the tokens to the token contract and the token contract interacts with the pancakeswap router to perform the necessary sell orders. So when I run my query any sell volume is not associated with the users wallet that sold the tokens but instead with the pancakeswap router. I am looking to see if anyone had any insight as to how i might be able to tweak my query to associate the sell order volume with the appropriate wallet that actually placed the sell order.  
Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [September 10, 2021, 6:18am UTC](https://community.bitquery.io/t/help-with-dextrades-sell-orders-not-showing-tradeamount/390/2 "2021-09-10T06:18:32Z")

</div>

There is an interpretation of trade with maker=taker: [![](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/ca01001a7f7486aba36ae7920ff8706d5e704f0a.png)Pancake case maker=taker](https://graphql.bitquery.io/ide/xXMIraFCKQ)

From events seen that it swaps internally:

“arguments”: [  
{  
“argument”: “sender”,  
“index”: “0”,  
“value”: “0x10ed43c718714eb63d5aa57b78b54704e256024e”  
},  
{  
“argument”: “amount0In”,  
“index”: “0”,  
“value”: “0”  
},  
{  
“argument”: “amount1In”,  
“index”: “0”,  
“value”: “46000000000000000000000000”  
},  
{  
“argument”: “amount0Out”,  
“index”: “0”,  
“value”: “2476531479492517432”  
},  
{  
“argument”: “amount1Out”,  
“index”: “0”,  
“value”: “0”  
},  
{  
“argument”: “to”,  
“index”: “0”,  
“value”: “0x10ed43c718714eb63d5aa57b78b54704e256024e”  
}  
]
