Type/to search
0
Follow
2
Followers
Vấn đề Ordersell
Help
Created 2023-02-12 17:05:55  
 2
 1414

Thông báo lỗi là:
2023-02-12 16:57:58 Futures_OKCoin lỗi 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 Thông tin amountSell = 5.99 amountBuy = 0
2023-02-12 16:57:54 Thông tin Số lượng Bitcoin có thể bán được 5.99
2023-02-12 16:57:54 Thông tin Giá bán 21814.890000000003
2023-02-12 16:57:54 Thông tin Số lượng Bitcoin có thể mua 0
2023-02-12 16:57:54 Thông tin Giá mua 21810.309999999998
2023-02-12 16:57:54 Thông tin High: 21911.75 Low: 21631.4 Sell: 21816.3 Buy: 21814.3 Last: 21847.6 Volume: 83544
Thông tin tài khoản 0


Đây là mã:

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)

Có thể bạn đã đọc trên diễn đàn và muốn thử nghiệm. Có 5.99 BTC trong tài khoản giả mạo và bạn không biết tại sao lại sai?
Cảm ơn.

Related Recommendations
Comment
All comments (2)

    整明白啦。。。。。。。。。。

    4 years ago

    期货交易所下单量一般都是张数,是整数,带小数会报错。

    4 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)