0
Follow
0
Followers
Tại sao lại có thông báo "hướng hoặc loại giao dịch không hợp lệ" khi đặt lệnh tương lai OKEx trong quá trình kiểm tra ngược mô phỏng?
Created 2018-03-09 11:31:31 Updated 2018-03-09 11:33:04
5
1903
exchange.SetContractType("quarter")
exchange.SetMarginLevel(20)
exchange.SetDirection("sell")
以上参数都设置了,还是提示invalid direction or trade type,不太懂什么情况,请求解答,非常感谢
Related Recommendations
in main TypeError: IO() takes at most 3 arguments (5 given)symbol not setGetTicker: 400: {"code": 2, "data": {}, "message": "invalid params"}gateio getdepth 502Decrypt: Secret key decrypt failedGetOrders: 400: {"code":-1121,"msg":"Invalid symbol."}HTTP 403 errorBitcoin trading by using botsPlease translate the buy plan pageRunning botvs docker on android
Comment
All comments (5)
exchange.SetContractType("quarter") // 设置合约为 季度
exchange.SetMarginLevel(20) // 设置杠杆
exchange.SetDirection("sell") // 设置合约 为 开空仓
然后您的 具体 下单 代码是怎么写的?
写的是 exchange.Buy ? 还是 exchange.Sell ?
8 years ago
- 1
