Das Problem mit Ordersell

Schriftsteller:- Ich weiß nicht., Erstellt: 2023-02-12 17:05:55, Aktualisiert:

Die Fehlermeldung lautet: 2023-02-12 16:57:58 Futures_OKCoin Fehler Sell ((21816.29, 5.99): map[code:1 data:[map[clOrdId:9e7f8f03cd7548BCbbc4AC5D4E708813 ordId: sCode:51121 sMsg:Order quantity must be a multiple of the lot size. tag:]] msg:All operations failed] 2023-02-12 16:57:58 Information amountSell = 5.99 amountBuy= 0 Die Daten sind nicht verfügbar. 2023-02-12 16:57:54 Informationen Anzahl der verkaufbaren Bitcoins 5.99 2023-02-12 16:57:54 Informationen Verkaufspreis 21814.890000000003 2023-02-12 16:57:54 Informationen Anzahl der Bitcoin, die gekauft werden können 0 2023-02-12 16:57:54 Informationen Kaufpreis 21810.309999999998 2023-02-12 16:57:54 Informationen High: 21911.75 Low: 21631.4 Sell: 21816.3 Buy: 21814.3 Last: 21847.6 Volumen: 83544 2023-02-12 16:57:54 Informationen Kontoinformationen 0


Der Code lautet:

  exchange.SetDirection("Sell")  
  exchange.Sell(sellPrice,amountSell);
  Log("账户信息",account )
  Log("账户信息",account.Balance )
  ticker1 = exchanges[0].GetTicker() // 首先读取当前行情信息,主要用到最新成交价
  Log("High:", ticker1.High, "Low:", ticker1.Low, "Sell:", ticker1.Sell, "Buy:", ticker1.Buy, "Last:", ticker1.Last, "Volume:", ticker1.Volume)
  Log("买价", buyPrice)
  Log("可买的比特币量", amountBuy )
  Log("卖价",sellPrice)
  Log("可卖的比特币量",amountSell)

Es ist der Code, den ich im Forum gesehen habe, und ich möchte ihn ausprobieren. Ich danke Ihnen.


Mehr

- Ich weiß nicht.Das ist alles klar.

Kleine TräumeDie Anzahl der Einheiten an den Futures-Börsen ist in der Regel Zahlenzahl, eine ganze Zahl, die mit Komma-Zahlen versehen wird.