Skip to content

IBKR cpapi order write-path wire layer (place / reply-confirm / cancel / status / live-orders) #135

Description

@NotAProfDev

Summary

Extend oath-adapter-ibkr with the Client Portal API v1 (cpapi) order write path as a pure wire layer — the second IBKR adapter slice, following the read path (#127/#129/#131).

Scope

  • Request DTOs (crate's first Serialize direction): OrderRequest, PlaceOrderRequest, ReplyConfirm.
  • Response DTOs: OrderPlaceReply (the place/reply union, one all-optional struct), CancelResponse, OrderStatus, LiveOrders/LiveOrder.
  • Endpoint descriptors: place / reply-confirm / cancel / order-status / live-orders (adds Method::Delete).
  • Harness: extend just ibkr-capture to drive the real place → confirm → cancel dance and capture sanitized fixtures.
  • Gated #[ignore] live round-trip test.

Non-goals (pure-wire boundary)

No transport, no auth, no OATH-domain translation, no order-safety semantics — ADR-0022 / ADR-0026 stay untouched (the read-path spec deferred writes over exactly this coupling; the wire subset sidesteps it). Order modify deferred as YAGNI.

Design / plan

  • Spec: docs/superpowers/specs/2026-07-11-ibkr-cpapi-writepath-wire-design.md
  • Plan: docs/superpowers/plans/2026-07-11-ibkr-cpapi-writepath-wire.md

Branch: feat/ibkr-cpapi-writepath.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions