This branch is for a paper-account rehearsal only. Do not use it for live IBKR.
ACCOUNT_GROUP=defaultmust resolve toib_gateway_mode=paper.IBKR_PAPER_LIQUIDATE_ONLY=trueis guarded in code and raises if the selected account group is not paper.- Keep
IBKR_DRY_RUN_ONLY=truefor the first invocation after every deploy or env change.
STRATEGY_PROFILE=russell_top50_leader_rotation
ACCOUNT_GROUP=default
IB_ACCOUNT_GROUP_CONFIG_SECRET_NAME=ibkr-account-groups
IBKR_FEATURE_SNAPSHOT_PATH=gs://qsl-runtime-logs-shared/strategy-artifacts/us_equity/russell_top50_leader_rotation_staging/russell_top50_leader_rotation_feature_snapshot_latest.csv
IBKR_FEATURE_SNAPSHOT_MANIFEST_PATH=gs://qsl-runtime-logs-shared/strategy-artifacts/us_equity/russell_top50_leader_rotation_staging/russell_top50_leader_rotation_feature_snapshot_latest.csv.manifest.json
NOTIFY_LANG=zh
- Publish a fresh
russell_top50_leader_rotationsnapshot/manifest/ranking/release summary to the GCS prefix above. - Deploy this branch to
interactive-brokers-quant-service. - Set
IBKR_DRY_RUN_ONLY=trueand invoke once. Confirm the notification is Chinese and the target list is sensible. - Set
IBKR_PAPER_LIQUIDATE_ONLY=trueand keepIBKR_DRY_RUN_ONLY=true; invoke once to preview paper liquidation orders. - Remove
IBKR_DRY_RUN_ONLY, keepIBKR_PAPER_LIQUIDATE_ONLY=true; invoke once to clear the paper account. - Remove
IBKR_PAPER_LIQUIDATE_ONLY; invoke once to run the Top50 balanced strategy on the cleared paper account. - Review Telegram, Cloud Logging, and the execution report artifact before any future live discussion.
Restore the previous paper strategy env:
STRATEGY_PROFILE=soxl_soxx_trend_income
unset IBKR_FEATURE_SNAPSHOT_PATH
unset IBKR_FEATURE_SNAPSHOT_MANIFEST_PATH
unset IBKR_PAPER_LIQUIDATE_ONLY
unset IBKR_DRY_RUN_ONLY