Skip to main content

How to check commission amount related to a specific position using Postman

Updated over 2 months ago

1. Retrieve your trades or create a new order:

  • To check an existing position:

    Send a GET request to the Account Trade List (/api/v3/myTrades) endpoint of the Binance SPOT API. This will return the details of your executed trades, including commissions.

  • To create a new position (optional):

    If you want to open a new trade first, send a POST request to the Binance API endpoint /api/v3/order, providing the appropriate parameters for a market order (such as symbol, side, type, and quantity).

2. Examine the response:

The response will contain details about the executed orders, including the fills and fees.

3. Look for the fee information:

In the response JSON, you'll find a `fills` array. Each element in this array represents a trade that was executed to fill your order. Within each fill, there will be a `commission` field that shows the fee amount.

4. Calculate the total fee:

If your order was filled with multiple trades, sum up the `commission` values from all fills to get the total fee amount.

Example:

Say you placed a market order to buy 10 ETH. The response might look something like this:

```json

{

"symbol": "ETHUSDT",

"orderId": 12345678,

"orderListId": -1,

"clientOrderId": "myOrder123",

"transactTime": 1507725176595,

"price": "0.00000000",

"origQty": "10.00000000",

"executedQty": "10.00000000",

"cummulativeQuoteQty": "34525.50000000",

"status": "FILLED",

"timeInForce": "GTC",

"type": "MARKET",

"side": "BUY",

"fills": [

{

"price": "3452.55000000",

"qty": "10.00000000",

"commission": "0.01000000",

"commissionAsset": "ETH"

}

]

}


In this example, the fee (commission) is 0.01 ETH.

Remember that trading fees are always charged in the asset you receive. For a buy order, the fee is paid in the base asset (in this case, ETH).

To calculate the fee in the quote asset (USDT in this example), you would multiply the fee by the price:

Fee in USDT = 0.01 ETH * 3452.55 USDT/ETH = 34.5255 USDT

Easily verify whether the commissions for your open trade are correct by following this method. This ensures transparency and accuracy in your trading activities on Binance through Zignaly.

Did this answer your question?