My question is, can I use safely the trading fees percentages I can get from Trade Fee (USER_DATA) in my calculations, with no surprises later like seeing the 0.075% got applied instead of the better ones 0.001% I get from API?
I recently discovered I can get the fees from API and noticed that they’re different from what’s announced on my accounts page.
The TRADE_FEE endpoint returns the commission rate as a fraction while the UI displays commission rate as a percentage. In theory they represent the same value, 0.1% == 0.1/100 = 0.001.
My question is, can I use safely the trading fees percentages I can get from Trade Fee (USER_DATA) in my calculations, with no surprises later like seeing the 0.075% got applied instead of the better ones 0.001% I get from API?
The TRADE_FEE endpoint returns the commission rate if you intend to pay commission using the quote asset of the trade. If you have BNB burn feature enabled (pay commission using your BNB position), your commission fee is reduced by 25%. This reduction and other discounts are not considered in the TRADE_FEE endpoint, therefore the commission fee may be less (most likely not greater) than that indicated from the endpoint.
The TRADE_FEE is the best resource to use to predict the commission fee an order would require.