teranoib

Results comments of teranoib

``` tradingPairs = ['BTCUSDT','ETHUSDT','BNBUSDT'] #Loop though cryptos for i in range(0,len(tradingPairs)): info = client.futures_exchange_info() if info['symbols'][0]['pair'] == tradingPairs[i]: print("Price Pre ",info['symbols'][0]['pricePrecision']) pricePrecision = info['symbols'][0]['pricePrecision'] quantityS = 5.2 quantityB = "{:0.0{}f}".format(quantityS,...

For Futures i used this and it worked very well `url = "https://api.binance.com/api/v3/exchangeInfo?symbol="+symbol info_data = requests.get(url).json() pricePrecision = info_data['symbols'][0]['baseAssetPrecision'] minQty = info_data['symbols'][0]['filters'][2]['minQty'] qtyTrueQ = info_data['symbols'][0]['filters'][1]['avgPriceMins'] quantityS = float(qtyTrueQ) quantityB =...