fix: require writable IBKR gateway readiness - #114
Conversation
Co-Authored-By: Codex <noreply@openai.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 188602c347
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Codex <noreply@openai.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
READ_ONLY_APIto be explicitly configured asyesorno; writable deployments must declareREAD_ONLY_API=no.reqOpenOrdersand fail closed if IBKR explicitly reports read-only mode.Root cause
Gateway readiness previously proved socket/API login and managed-account discovery, but did not require an explicit writable configuration contract. A container could therefore be marked ready while its configured API mode was ambiguous or read-only. The old success log also exposed managed account identifiers, and the initial timeout conversion rejected valid fractional values.
Behavior and safety
READ_ONLY_API=nois the Gateway-side writable configuration contract.reqOpenOrdersis a supplemental non-mutating API readiness check; it does not independently prove order-write permission.Validation
bash -n: passedgit diff --check: passedddb4150525: no major issuesDeployment note
The production write path was verified independently through the Platform runtime. This Gateway readiness change has not yet been deployed and remains gated on normal review and deployment.