Số lượng đơn thực tế không phù hợp với số lượng đơn đã được in trước đó

Tác giả:Trong tuyết, Tạo: 2021-04-30 06:59:35, Cập nhật:

img

2021-04-30 06:49:07 Futures_Binance lỗi Buy ((22.7789, 0): 400: {code:-4003,??msg:Quantity less than zero.} 2021-04-30 06:49:07 Thông tin buy_price: 22.7789 buy_amount: 0.5888040136226255 WAVES_USDT 2021-04-30 06:49:07 Futures_Binance lỗi Sell ((22.9508, 0): 400: {code:-4003,??msg:Quantity less than zero.} 2021-04-30 06:49:07 Thông tin sell_price: 22.9508 position[0][Amount]: 0.8 WAVES_USDT

Dưới đây là nhật ký được in trước khi đặt hàng, thực sự giữ 0,8, nhưng khi đặt hàng là 0, không biết tình hình là gì, xuất hiện nhiều lần.


Thêm nữa

Cỏ nhỏChọn độ chính xác là 0, int ((0.8) = 0

Trong tuyếtposition=_C ((e.GetPosition) sell_price=position[0]['Price']*params1["pingduo][index] Log (('sell_price:',round ((sell_price,int ((params1["arrPricePrecision"][index])), 'position[0]["Amount"]:',position[0]["Amount",e.GetCurrency()) firstInfo=e.Sell(round(sell_price, int ((params1["arrPricePrecision"][index]))), position[0]["Amount"], e.GetCurrency (()) params1["close_buy_order"][index]['id'] = firstInfo params1["close_buy_order"][index]['price'] = round ((sell_price, int))) params1["arrPricePrecision"[index])) params1["close_buy_order"][index]['amount']=position[0]["Amount"] Đây là mã chiến lược.

Trong tuyếtposition=_C(e.GetPosition) sell_price=position[0]['Price']*params1["pingduo"][index] Log (('sell_price:',round(sell_price,int(params1["arrPricePrecision"][index])),'position[0]["Amount"]:',position[0]["Amount"],e.GetCurrency()) firstInfo=e.Sell(round(sell_price,int(params1["arrPricePrecision"][index])),position[0]["Amount"],e.GetCurrency()) params1["close_buy_order"][index]['id'] = firstInfo params1["close_buy_order"][index]['price'] = tròn ((sell_price,int(params1["arrPricePrecision"][index])) params1["close_buy_order"][index]['amount']=position[0]["Amount"]

Trong tuyếtposition=_C ((e.GetPosition) sell_price=position[0]['Price']*params1["pingduo][index] Log (('sell_price:',round ((sell_price,int ((params1["arrPricePrecision"][index])), 'position[0]["Amount"]:',position[0]["Amount",e.GetCurrency()) firstInfo=e.Sell(round(sell_price, int ((params1["arrPricePrecision"][index]))), position[0]["Amount"], e.GetCurrency (()) - Grasshopper, xin lỗi, đây là mã, sử dụng trực tiếp position [0]["Amount"] nhưng dưới cùng là 0, không biết vấn đề ở đâu, đau đầu.

Trong tuyếtĐơn giản là nó đã được in chính xác, đúng vậy, thông báo này là đôi khi không, tôi sẽ kiểm tra lại kiểm tra mã, xem nếu có một chuỗi, cảm ơn chúa cỏ, vấn đề này sẽ không làm phiền bạn nữa