BitMEX API Tools for Bulk Orders, Amendments, and Timed Cancels
Summary
This library wraps several BitMEX order-management operations for an FMZ trading environment. It lets a strategy build a local batch of orders, review or clear that batch, and submit it in bulk. It also supports staging order amendments, changing an order’s price or quantity, canceling open orders with optional filters, and scheduling a cancel-all timeout that can be reset. Optional order fields include display quantity for iceberg behavior, client order IDs, order types, and execution instructions such as reduce-only or post-only.
These features can reduce the number of individual API calls needed for order handling and support common execution workflows. The document is interface documentation and sample code, not an execution strategy or measured performance study. It does not assess rate limits, partial fills, exchange-state reconciliation, or operational reliability. The code also contains apparent inconsistencies, so users should validate behavior against the exchange API and their environment before relying on it.
Key ideas
- Orders can be staged locally and submitted in bulk, with optional symbol filtering.
- The library supports single and batch amendments to order price or quantity.
- Cancel operations can target all open orders or filter by criteria, and timed cancellation can be scheduled.
- Order options include display quantity, custom client IDs, and execution instructions.
- The document provides no performance evidence and the sample code may require validation against the current API.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.