okx-order-support-formal-implementation.md 899 B

OKX order support formal implementation

No OKX request, order, or cancel was made.

Implemented production surface

OkxClient now has non-submitting static builders for:

  • build_post_only_limit_order_body
  • build_entry_batch_order_body
  • build_cancel_order_body
  • build_pending_orders_params
  • build_fills_params

Existing place_order behavior is unchanged. No CLI command was added. No trading execution path calls the new builders.

Verified shapes

  • Single isolated post_only limit order body.
  • Three independent isolated post_only entry bodies at 0.3%, 0.6%, and 0.9% offsets.
  • Cancel body with exactly one order identifier.
  • Pending-orders params with instType=SWAP and instId.
  • Fills params with instType=SWAP and instId.

Verification

Command:

rtk .venv/bin/pytest -q tests/test_okx_client.py

Result:

75 passed in 0.06s