I don’t understand why binance don’t explain all Quests.
So I use /api/v3/myTrades and /api/v3/allOrders to find how I spend in trade with fee.
in the first I use /api/v3/allOrders and give result like that:
[{
"symbol": "BTTCUSDT",
"orderId": *****,
"orderListId": -1,
"clientOrderId": "******",
"price": "0.00000000",
"origQty": "30588846.0",
"executedQty": "30588846.0",
"cummulativeQuoteQty": "54.44814588",
"status": "FILLED",
"timeInForce": "GTC",
"type": "MARKET",
"side": "BUY",
"stopPrice": "0.00000000",
"icebergQty": "0.0",
"time": 1647099489614,
"updateTime": 1647099489614,
"isWorking": true,
"origQuoteOrderQty": "54.44814600"
},
{
"symbol": "BTTCUSDT",
"orderId": ****,
"orderListId": -1,
"clientOrderId": "******",
"price": "0.00000000",
"origQty": "30558257.0",
"executedQty": "30558257.0",
"cummulativeQuoteQty": "54.08811489",
"status": "FILLED",
"timeInForce": "GTC",
"type": "MARKET",
"side": "SELL",
"stopPrice": "0.00000000",
"icebergQty": "0.0",
"time": 1647099561989,
"updateTime": 1647099561989,
"isWorking": true,
"origQuoteOrderQty": "0.00000000"
},]
So I thing
‘executedQty’ is QTY BTTC after exchange take fee?
‘cummulativeQuoteQty’ is amount USDT after exchange take fee?
This method not help me to know how I spend USDT first include exchange fee.
I try another method: /api/v3/myTrades
[{
"symbol": "BTTCUSDT",
"id": ****,
"orderId": ****,
"orderListId": -1,
"price": "0.00000178",
"qty": "30588846.0",
"quoteQty": "54.44814588",
"commission": "30588.8",
"commissionAsset": "BTTC",
"time": 1647099489614,
"isBuyer": true,
"isMaker": false,
"isBestMatch": true
},
{
"symbol": "BTTCUSDT",
"id": ****,
"orderId": ****,
"orderListId": -1,
"price": "0.00000177",
"qty": "30558257.0",
"quoteQty": "54.08811489",
"commission": "0.05408811",
"commissionAsset": "USDT",
"time": 1647099561989,
"isBuyer": false,
"isMaker": false,
"isBestMatch": true
}]
‘qty’ is QTY BTTC after exchange take fee?
‘quoteQty’ the total amount USDT I spend without exclude any fee because the fee take from ‘qty’ BTTC
I don’t understand in this array
{
"symbol": "BTTCUSDT",
"id": ****,
"orderId": ****,
"orderListId": -1,
"price": "0.00000178",
"qty": "30588846.0",
"quoteQty": "54.44814588",
"commission": "30588.8",
"commissionAsset": "BTTC",
"time": 1647099489614,
"isBuyer": true,
"isMaker": false,
"isBestMatch": true
}
exchange take fee from BTTC and commission is 30588.8 this mean: “qty”: “30588846.0” + “commission”: “30588.8” to get the total BTTC purchase without exclude fee?
In this array:
‘quoteQty’ is amount USDT after exchange take fee?
‘qty’ the total QTY without exclude any fee because the fee take from ‘quoteQty’ USDT?
{
"symbol": "BTTCUSDT",
"id": ****,
"orderId": ****,
"orderListId": -1,
"price": "0.00000177",
"qty": "30558257.0",
"quoteQty": "54.08811489",
"commission": "0.05408811",
"commissionAsset": "USDT",
"time": 1647099561989,
"isBuyer": false,
"isMaker": false,
"isBestMatch": true
}
exchange take fee from USDT and commission is 0.05408811 this mean: “quoteQty”: “54.08811489” + “commission”: “0.05408811” to get the total USDT spend to purchase without exclude fee?
ALL my things in true or false?