8
Follow
1361
Followers
Regarding how to place BitMEX Post-Only Limit Orders and Batch Orders using IO (an example)
Created 2023-07-12 17:19:15 Updated 2025-01-08 21:34:54
0
828
Regarding how to place BitMEX Post-Only Limit Orders and Batch Orders using IO (an example)
Use the IO function and refer to the BitMEX documentation for specific parameters: https://www.fmz.com/bbs-topic/3666
Market-making order (passive execution only)
javascript
var id = exchange.IO("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate")
Batch order placement
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
Constructing Interactive Button Functions in the Strategy Status BarStrategy Interface Parameter SettingsFMZ Cryptocurrency Quantitative Platform WebSocket Usage Guide (Detailed Explanation of the Upgraded Dial Function)Crash Course in Python in X MinutesCrash Course in JavaScript in X MinutesOpen source FMZ Quant TA library, learn to use (with Javascript/Python/C++ versions)FMZ Quant Trading Platform Custom Protocol Access to Customized ExchangesFMZ Has Launched Python Local Backtest EngineAdvanced tutorials for FMZ Quant platform strategy writingApplication of the "__Thread" function in JavaScript strategy design
Comment
All comments (0)
No data
- 1

