3
Follow
1503
Followers
Make Post-Only order and bulk orders on BitMEX through IO
Created 2019-04-18 13:55:58 Updated 2019-04-18 13:58:55
0
2247
Make Post-Only order and bulk orders on BieMEX
Use IO function,refer to BitMEX doc:https://www.fmz.com/bbs-topic/3666
Post-Only order
javascript
var id = exchange.IO("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate")
bulk orders
javascript
var bulk = []
bulk.push({symbol:'XBTUSD', side:'Buy', orderQty:100, price:5000, execInst:'ParticipateDoNotInitiate'})
bulk.push({symbol:'XBTUSD', side:'Buy', orderQty:200, price:5100, execInst:'ParticipateDoNotInitiate'})
var param = "orders=" + JSON.stringify(bulk)
var ids = exchange.IO("api", "POST", "/api/v1/order/bulk", param)
Log(ids)
Cancel all orders
javascript
exchange.IO("api","DELETE","/api/v1/order/all","symbol=XBTUSD")
Related Recommendations
3.5 Visual Programming language implementation of trading strategies3.4 Visual programming quick start3.3 How to implement strategies in M language3.2 Getting started with the M language3.1 Quantitative trading programming language evaluation2.4 How to write a trading strategy on FMZ Quant platform2.3 Common API explanations2.2 How to configure the FMZ Quant trading system2.1 Introduction to the quantitative trading toolFMZ intermediate tutorial
Comment
All comments (0)
No data
- 1
