0
Follow
20
Followers
How to Pend Market orders (Only Passively Traded) and Place Orders in Batch on BitMEX (IO Demo)
Created 2022-03-30 15:09:18 Updated 2022-03-30 15:44:50
0
816
Use IO function; for specific parameters, you can refer to BitMEX documentation: https://www.fmz.com/bbs-topic/3666
Market Orders (only passively traded)
javascript
var id = exchange.IO("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate")
Batch Processing of Pending 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)
Canceling all orders
javascript
exchange.IO("api","DELETE","/api/v1/order/all","symbol=XBTUSD")
Related Recommendations
Notice for Ghostwriting Strategies on FMZReal Technology of FMZ Quant - How to Break the Limits for Obtaining TickQuick Construction of Your Own Exclusive Multi-User Quantitative Trading Platform Without CostUse the extended API on FMZ Quant to realize "TradingView" alert signal tradingMain Interface Overview and Structure of FMZ Quant Trading PlatformFMZ Launched Python Local Backtest EngineFMZ Feedback to New and Old Users by AffiliationFMZ Quant Simulation Level Backtest Mechanism DescriptionFMZ Backtest Mechanism DescriptionLinux Docker Installation and Update Steps
Comment
All comments (0)
No data
- 1
