Die tatsächliche Anzahl der Bestellungen entspricht nicht der Anzahl, die vor der Bestellung gedruckt wurde

Schriftsteller:Im Schnee., Erstellt: 2021-04-30 06:59:35, Aktualisiert:

img

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

Hier ist das vor der Bestellung gedruckte Protokoll, das tatsächlich 0,8 hält, aber bei der Ausgleichszeit 0 ist, keine Ahnung, was passiert ist, erscheint mehrmals


Mehr

Das GrasWenn wir die Präzision auf 0 setzen, dann ist int ((0.8) = 0

Im Schnee.Position=_C (e.GetPosition) Sell_price=position[0]['Price']*params1["Pingduo][index] Das Ergebnis ist ein sehr gutes Ergebnis. 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'] = ersteInfo Params1 ["close_buy_order"][index]['price'] = round ((sell_price, int))) Params1 ["arrPricePrecision"[index]) Params1["close_buy_order"][index]['amount']=position[0]["Amount"] Das ist der Strategiecode.

Im Schnee.Position=_C(e.GetPosition) Verkaufspreis=Position[0]['Preis']*params1["pingduo"][index] Log (('sell_price:',round(sell_price,int(params1["arrPricePrecision"][index])),'position[0]["Auszahlung"]:',position[0]["Auszahlung"],e.GetCurrency()) firstInfo=e.Sell(round(sell_price,int(params1["arrPricePrecision"][index])),Position[0]["Amount"],e.GetCurrency()) Params1["close_buy_order"][index]['id'] = ersteInfo Params1["close_buy_order"][index]['price'] = rund ((Verkaufspreis,int(params1["arrPricePrecision"][index])) Params1["close_buy_order"][index]['amount']=position[0]["Amount"]

Im Schnee.Position=_C (e.GetPosition) Sell_price=position[0]['Price']*params1["Pingduo][index] Das Ergebnis ist ein sehr gutes Ergebnis. 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 (()) - Grasgott, tut mir leid, das ist Code, direkt für Position [0]["Amount"] aber die Liste unten ist immer noch 0, ich weiß nicht mehr wo das Problem ist, ich habe Kopfschmerzen.

Im Schnee.Es ist genau gedruckt, ja, das ist ein Fehler, manchmal nicht, ich überprüfe den Code noch einmal, um zu sehen, ob es eine String gibt, danke Grasshopper, wenn es wieder Probleme gibt, dann stören wir Sie nicht.