Skip to content

fix: use readonly Gateway sessions for shadow runs - #405

Merged
Pigbibi merged 1 commit into
mainfrom
fix/readonly-shadow-gateway-connect
Aug 28, 2026
Merged

fix: use readonly Gateway sessions for shadow runs#405
Pigbibi merged 1 commit into
mainfrom
fix/readonly-shadow-gateway-connect

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • connect IBKR shadow and dry-run cycles with the API readonly flag
  • preserve writable Gateway sessions for explicitly live runtimes
  • advance QuantPlatformKit to the merged readonly-connection capability

Safety

This prevents shadow cycles from requesting trading authority. It does not enable live trading or alter runtime-target flags.

Verification

  • uv run --extra test python -m pytest -q tests/test_event_loop.py tests/test_runtime_broker_adapters.py tests/test_connect_timeout_alert.py
  • uv run --extra test ruff check main.py tests/test_event_loop.py
  • uv run --no-sync python scripts/check_qpk_pin_consistency.py

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 3731e3d into main Aug 28, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/readonly-shadow-gateway-connect branch August 28, 2026 17:04
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