I shared the log generated after execute a market order.
As you can see in the screenshot, the comission for this transaction was 0.00009185, the BNBBTC price on that moment was 0,014277. But, using the formula (0.00177387 * 0.075 / 100) / 0.014277 = 0.00009319. So I can’t guess how Binance is calculating my fees. I don’t have any discount.
Thanks in advance.
The formula provided is correct, and the assumption that the commission rate should be 0.075 is also correct. The only possible misunderstanding I sense would be the BNBBTC exchange rate, can you please provide the timestamp of the trade so that we can confirm if the exchange rate is correct?
Everything is in the screenshot I shared before. The value in the field “transactionTime” is the timestamp, 1664398788418 which is 28/10/2022 20:59, server time.
My apologies, the above calculations are incorrect.
The correct formula for a BUY order is (qty*commission_rate/100)/base_asset_to_bnb_exchange_rate
which in this case would be (13.047*0.075/100)/0.00938700=0.00009185414
. The exchange used is GALBNB.
1 Like
Many thanks for you explanation!For SELL orders will be another one?
For sell orders, the formula is (qty*price*commission_rate/100)/quote_asset_to_bnb_exchange_rate
. The quote asset exchange symbol to BNB would be BNBTC.
1 Like
I forgot to ask you if the formula for sell orders you shared above… Is it even for limit and market orders or just limit?
The formulas above are applied at trade level. therefore order type is irrelevant.
1 Like