Skip to content

fix(ibkr): align cash-only sleeve to USD NLV for RRL weights - #511

Merged
Pigbibi merged 1 commit into
mainfrom
fix/ibkr-align-nlv-risk-gate-20260917
Sep 17, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
fix/ibkr-align-nlv-risk-gate-20260917

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • When cash-only USD strategy equity (positions+cash) exceeds verified NetLiquidation, rebase cash so value targets share the RRL NLV denominator.
  • Log capital/runtime risk capability status and target-value sum on rejected:runtime_risk_limits for U159 diagnosis.
  • /run remains paused until a clean FORCE dry-run.

Test plan

  • pytest tests/test_ibkr_portfolio.py tests/test_strategy_runtime.py
  • Image deploy to live-u15998061; FORCE dry-run; confirm no RRL reject (or inspect new reject log); FORCE=false
  • Resume /run only if dry-run OK

Made with Cursor

SOXL sizes value targets from positions+cash while the risk gate divides by
capital_base NetLiquidation. When marks exceed NLV, in-cap 65/20 weights
inflate into rejected:runtime_risk_limits. Shrink the cash sleeve to the
verified USD NLV and log capability/target context on RRL rejects.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Pigbibi
Pigbibi merged commit 83f01b1 into main Sep 17, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/ibkr-align-nlv-risk-gate-20260917 branch September 17, 2026 12:30
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