How to get order fees in hedge mode LONG or SHORT

Hi,

I need to get the fees amount and currency for Futures order with API.

In spot mode I get fees with API GET /api/v3/order with commission and commissionAsset returned value.

I didn’t get these information with Binance Futures GET /fapi/v1/order endpoint.

Do you know how can I get these fees information ?

Thanks

Hi. There are several approaches to get such info:

  1. GET /fapi/v1/income with incomeType = COMMISSION
    https://binance-docs.github.io/apidocs/futures/en/#get-income-history-user_data
  2. GET /fapi/v1/userTrades
    https://binance-docs.github.io/apidocs/futures/en/#account-trade-list-user_data
  3. User Stream event ORDER_TRADE_UPDATE
    https://binance-docs.github.io/apidocs/futures/en/#event-order-update
1 Like

Thanks, this is exactly what I was looking for.
Thank you very much!