Placing BitMEX Post-Only and Batch Limit Orders Through IO
Summary
This brief example shows how to submit BitMEX orders through an exchange IO interface. It demonstrates a post-only limit order by setting the passive-execution instruction, then shows a bulk request containing two limit orders for the same contract. A final request cancels all open orders for the specified symbol.
The examples are implementation guidance for order placement and cancellation, not a complete market-making strategy. They do not describe quote selection, inventory management, order acknowledgments, partial fills, error handling, or the risks of relying on post-only behavior. The document points readers to platform documentation for the endpoint parameters, so the examples should be understood in that API context.
Key ideas
- A BitMEX limit order can use a post-only execution instruction to avoid initiating a trade immediately.
- Multiple orders can be submitted together through a bulk order endpoint.
- The example includes a symbol-scoped request to cancel all orders.
- The snippets do not specify a quoting, inventory, or fill-management strategy.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.