i am building this program in python with python binance library
eachTradePercent = 66
availableUSDT = 20.55
calculatePercentUSDT = float(availableUSDT) * eachTradePercent / 100
avgTickerPrice = get_avg_Price['price']
calculatedBuyQuantity = int(calculatePercentUSDT / float(avgTickerPrice))
b = round(calculatedBuyQuantity, 4)
print("===================================================")
print(f" {tv_signal_ticker} average price is -> {avgTickerPrice}")
print(f" calculatePercentUSDT is -> {calculatePercentUSDT}")
print(f" Buy Quantity for with int -> {tv_signal_ticker} is {calculatedBuyQuantity}")
print(f" without int-> {calculatePercentUSDT / float(avgTickerPrice)}")
print(f"b with round -> {b} “)
print(”==================================================")
Output in console
========== console OUTPUT 1 =============
AAVEUSDT average price is -> 398.39542276
calculatePercentUSDT is -> 13.293634200000001
Buy Quantity for with int -> AAVEUSDT is 0
without int-> 0.033367939089019874
b with round -> 0
An exception occurred APIError(code=-1013): Invalid quantity.
.
====== console OUTPUT 2 ===============
ALGOUSDT average price is -> 1.20665746
calculatePercentUSDT is -> 13.293634200000001
Buy Quantity for with int -> ALGOUSDT is 11
without int-> 11.016907979833814
b with round -> 11
.
============console OUTPUT 3 ================
BTCUSDT average price is -> 49909.15790254
calculatePercentUSDT is -> 4.5424302
Buy Quantity for with int -> BTCUSDT is 0
without int-> 9.10139619840956e-05
b with round -> 0
An exception occurred APIError(code=-1013): Invalid quantity.
.
=========console OUTPUT 4 ================
TRXUSDT average price is -> 0.10109436
calculatePercentUSDT is -> 13.293634200000001
Buy Quantity for with int -> TRXUSDT is 131
without int-> 131.49728827602254
b with round -> 131
.
===========CONSOLE OUTPUT 5 =================
BNBUSDT average price is -> 495.91391722
calculatePercentUSDT is -> 13.280665199999998
Buy Quantity for with int -> BNBUSDT is 0
without int-> 0.026780182484994385
b with round -> 0Sending BUY Order for BNBUSDT Position-> BUY
An exception occurred APIError(code=-1013): Invalid quantity.
sir how to calculate accepted format quantity for all coins
how to fix these types of errors