0
Follow
0
Followers
Làm thế nào để viết hợp đồng dài hạn, ngắn hạn, mở và đóng hợp đồng dài hạn trên OKEx?
Created 2018-06-03 20:50:44 Updated 2019-07-31 17:33:51
3
4584
API gốc của okex, có thể thực hiện các giao dịch thông qua trường type 1: mở nhiều 2: mở rỗng 3: ngang nhiều 4: ngang rỗng.
Nhưng làm thế nào để viết thông qua một API định lượng của nhà phát minh?
Có phải dưới đây không?
Cửa sổ mở
exchange.SetDirection("buy")
exchange.Buy(Price, Amount)
Bình Đô
exchange.SetDirection("closebuy")
exchange.Sell(Price, Amount)
Không có chỗ trống
exchange.SetDirection("sell")
exchange.sell(Price, Amount)
Không gian
exchange.SetDirection("closesell")
exchange.buy(Price, Amount)
Related Recommendations
The grid trading strategyPython streamlined multi-variety MACD trending strategy frameworkin 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 bots
Comment
All comments (3)
