Get fee

I have a bot connected to Binance API
I need to know the amount of fee in each order.
Example, If I set a buy limit order with SL market and TP limit and the order and I loose the position. Need to know how much was charge for the Buy Limit order and the SL order.

Need to know the amount per order

Could you tell me where could I get it localizate in

Regards

Hi. If I understand the question correctly, the fee you mean is the commission fee, right?
You can get the info by calling this endpoint GET /api/v3/myTrades