You should check the response returned from the server after you placed to order to confirm if the quantity is 8.1. If you want to place an order of 10USDT, you can use parameter quoteOrderQty instead of quantity. Not really sure about the library you are using, but here is an official package from Binance: GitHub - binance/binance-connector-python: a simple connector to Binance Public API
But it if I create an order to buy 0.072, it actually buys 0.07189. So I have to sell 0.071(because of lot sizes). Then 0.00089 of XMR being left unsellable. So every trade, leftover is being created.
Okay, so i don’t know reason why, but this bug magically just disappeared today. Now the same line of code
buy_market = client.create_order(symbol='MTLUSDT', side='BUY', type='MARKET', quantity=8.1)
exactly buy 8.1 not 8.0919. Tested with others and the problem doesn’t happen any more.