Skip to main content
Changes to D1’s public APIs, newest first.
Market Maker API (/mm/v1)
External MM V1 is the current programmatic market-maker interface for D1.
  • Authenticated API. Bearer API keys issued by D1, with the mm:read and mm:trade scopes. The key identifies your account.
  • Market and account reads. Markets, order books, balances, positions, orders and fills.
  • Order placement. POST /mm/v1/orders places good-till-cancelled limit orders. The full quantity is accepted or the order is refused.
  • Idempotent placement. A required clientOrderId makes retries safe. Reusing one with different terms returns 409 IDEMPOTENCY_CONFLICT.
  • Cancellation. POST /mm/v1/orders/{orderId}/cancel and POST /mm/v1/orders/cancel-all. Both stay available when new orders are not.
  • Execution reconciliation. GET /mm/v1/executions gives a gap-free, per-account execution sequence with checkpoints.
  • Sell-to-close. SELL orders can only close long positions. Option writing is not available.
  • Trading controls. GET /mm/v1/status reports whether new orders are accepted now and your order limits: open-order exposure, resting orders, and resting orders per market.
  • Rate limiting. Separate budgets for reads, placement, cancel and cancel-all, per account and per key. 429 RATE_LIMITED with Retry-After.
See the Market Makers guides.