Skip to content

Feature/twsapi client python port - #14

Merged
zhangjiayin merged 18 commits into
mainfrom
feature/twsapi-client-python-port
Jul 11, 2026
Merged

Feature/twsapi client python port#14
zhangjiayin merged 18 commits into
mainfrom
feature/twsapi-client-python-port

Conversation

@zhangjiayin

Copy link
Copy Markdown
Member

No description provided.

Add missing REST endpoints across public_data, strategy, subaccount,
and trade services to reach full 264-operation baseline. Fix HTTP
transport to always send Content-Type and x-simulated-trading headers
explicitly. Introduce baseline operation manifest with validation,
rate-limit replay tests, and contract assertions for header correctness.
Update roadmap with vendor SDK references and add parity remediation spec.
- Correct generated inventory paths (simulated_margin, set-riskOffset-type)
  to match canonical OKX V5 endpoints and ensure regeneration preserves them
- Model account-balance summaries with nested detail records and OKX empty
  numeric sentinels; fix balance response deserialization
- Decode native WebSocket  acknowledgements (login/subscribe/error/
  notice) and invalidate sessions on transport-level failures
- Add WsStateCoordinator to apply acknowledgement outcomes to session and
  subscription state machine; route events despite server-added metadata
- Implement application-level heartbeat: arm on inbound messages, send ping
  on idle, disconnect on missed pong
- Add clock-offset and expTime support for signed REST and WebSocket
  order/amend commands; measure server-time offset via /public/time
- Surface per-item trade command failures as PartialFailure instead of
  unconditional success
- Support parameterless POST baseline operations (activate_option, mmp-reset)
  with empty JSON body semantics
- Add SubscriptionKey::matches_event for broad/wildcard subscription routing
  including instType/instFamily/uly parameters
- Add receive_for_session helper for session-aware WebSocket message handling
- Detect OKX code 50102 as ClockSkew error
@zhangjiayin
zhangjiayin merged commit bf17254 into main Jul 11, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant