Skip to content

Commit edd9883

Browse files
authored
Merge pull request #19 from QuantStrategyLab/codex/20260416-ibkr-runtime-cleanup
[codex] Align IBKR strategy runtime contracts
2 parents e206e6b + 67551f3 commit edd9883

132 files changed

Lines changed: 463 additions & 167614 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/sync-cloud-run-env.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ jobs:
106106
output.write(
107107
f"requires_strategy_config_path={str(bool(selected.get('requires_strategy_config_path'))).lower()}\n"
108108
)
109+
output.write(
110+
f"config_source_policy={str(selected.get('config_source_policy') or 'none')}\n"
111+
)
112+
output.write(
113+
f"reconciliation_output_policy={str(selected.get('reconciliation_output_policy') or 'none')}\n"
114+
)
109115
PY
110116
111117
- name: Validate env sync inputs
@@ -114,6 +120,8 @@ jobs:
114120
REQUIRES_SNAPSHOT_ARTIFACTS: ${{ steps.strategy_requirements.outputs.requires_snapshot_artifacts }}
115121
REQUIRES_SNAPSHOT_MANIFEST_PATH: ${{ steps.strategy_requirements.outputs.requires_snapshot_manifest_path }}
116122
REQUIRES_STRATEGY_CONFIG_PATH: ${{ steps.strategy_requirements.outputs.requires_strategy_config_path }}
123+
CONFIG_SOURCE_POLICY: ${{ steps.strategy_requirements.outputs.config_source_policy }}
124+
RECONCILIATION_OUTPUT_POLICY: ${{ steps.strategy_requirements.outputs.reconciliation_output_policy }}
117125
run: |
118126
set -euo pipefail
119127
@@ -135,8 +143,12 @@ jobs:
135143
required_vars+=(IBKR_FEATURE_SNAPSHOT_MANIFEST_PATH)
136144
fi
137145
138-
if [ "${REQUIRES_STRATEGY_CONFIG_PATH:-}" = "true" ]; then
139-
required_vars+=(IBKR_STRATEGY_CONFIG_PATH IBKR_RECONCILIATION_OUTPUT_PATH)
146+
if [ "${REQUIRES_STRATEGY_CONFIG_PATH:-}" = "true" ] && [ "${CONFIG_SOURCE_POLICY:-}" = "env_only" ]; then
147+
required_vars+=(IBKR_STRATEGY_CONFIG_PATH)
148+
fi
149+
150+
if [ "${RECONCILIATION_OUTPUT_POLICY:-}" = "required" ]; then
151+
required_vars+=(IBKR_RECONCILIATION_OUTPUT_PATH)
140152
fi
141153
142154
missing_vars=()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ ACCOUNT_GROUP=default
155155
IB_ACCOUNT_GROUP_CONFIG_SECRET_NAME=ibkr-account-groups
156156
IBKR_FEATURE_SNAPSHOT_PATH=/var/data/tech_communication_pullback_enhancement_feature_snapshot_latest.csv
157157
IBKR_FEATURE_SNAPSHOT_MANIFEST_PATH=/var/manifests/tech_communication_pullback_enhancement_feature_snapshot_latest.csv.manifest.json
158-
IBKR_STRATEGY_CONFIG_PATH=/workspace/research/configs/growth_pullback_tech_communication_pullback_enhancement.json
158+
# IBKR_STRATEGY_CONFIG_PATH is optional; the bundled canonical default is used when unset.
159159
IBKR_DRY_RUN_ONLY=true
160160
GLOBAL_TELEGRAM_CHAT_ID=<telegram-chat-id>
161161
NOTIFY_LANG=zh

configs/paper_tech_communication_pullback_enhancement.dryrun.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ACCOUNT_GROUP=default
44
IB_ACCOUNT_GROUP_CONFIG_SECRET_NAME=ibkr-account-groups
55
IBKR_FEATURE_SNAPSHOT_PATH=/var/data/tech_communication_pullback_enhancement_feature_snapshot_latest.csv
66
IBKR_FEATURE_SNAPSHOT_MANIFEST_PATH=/var/manifests/tech_communication_pullback_enhancement_feature_snapshot_latest.csv.manifest.json
7-
IBKR_STRATEGY_CONFIG_PATH=/workspace/research/configs/growth_pullback_tech_communication_pullback_enhancement.json
7+
# IBKR_STRATEGY_CONFIG_PATH is optional; the bundled canonical default is used when unset.
88
IBKR_RECONCILIATION_OUTPUT_PATH=/var/log/ibkr_tech_communication_pullback_enhancement_reconciliation.json
99
IBKR_DRY_RUN_ONLY=true
1010
GLOBAL_TELEGRAM_CHAT_ID=<telegram-chat-id>

configs/paper_tech_communication_pullback_enhancement.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ACCOUNT_GROUP=default
44
IB_ACCOUNT_GROUP_CONFIG_SECRET_NAME=ibkr-account-groups
55
IBKR_FEATURE_SNAPSHOT_PATH=/var/data/tech_communication_pullback_enhancement_feature_snapshot_latest.csv
66
IBKR_FEATURE_SNAPSHOT_MANIFEST_PATH=/var/manifests/tech_communication_pullback_enhancement_feature_snapshot_latest.csv.manifest.json
7-
IBKR_STRATEGY_CONFIG_PATH=/workspace/research/configs/growth_pullback_tech_communication_pullback_enhancement.json
7+
# IBKR_STRATEGY_CONFIG_PATH is optional; the bundled canonical default is used when unset.
88
IBKR_RECONCILIATION_OUTPUT_PATH=/var/log/ibkr_tech_communication_pullback_enhancement_reconciliation.json
99
IBKR_DRY_RUN_ONLY=true
1010
GLOBAL_TELEGRAM_CHAT_ID=<telegram-chat-id>

configs/paper_tech_communication_pullback_enhancement.paper.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ACCOUNT_GROUP=default
44
IB_ACCOUNT_GROUP_CONFIG_SECRET_NAME=ibkr-account-groups
55
IBKR_FEATURE_SNAPSHOT_PATH=/var/data/tech_communication_pullback_enhancement_feature_snapshot_latest.csv
66
IBKR_FEATURE_SNAPSHOT_MANIFEST_PATH=/var/manifests/tech_communication_pullback_enhancement_feature_snapshot_latest.csv.manifest.json
7-
IBKR_STRATEGY_CONFIG_PATH=/workspace/research/configs/growth_pullback_tech_communication_pullback_enhancement.json
7+
# IBKR_STRATEGY_CONFIG_PATH is optional; the bundled canonical default is used when unset.
88
IBKR_RECONCILIATION_OUTPUT_PATH=/var/log/ibkr_tech_communication_pullback_enhancement_reconciliation.json
99
IBKR_DRY_RUN_ONLY=false
1010
GLOBAL_TELEGRAM_CHAT_ID=<telegram-chat-id>

research/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Research Notes
2+
3+
This directory keeps IBKR-side research artifacts that are still useful for
4+
current live strategy review.
5+
6+
Live strategy behavior is owned by `UsEquityStrategies`, platform runtime
7+
configuration, and the snapshot pipeline repositories. Historical IBKR-local
8+
research files that used retired TQQQ, SOXL/SOXX, growth-pullback, or
9+
stock-alpha assumptions have been removed so they are not reused as current
10+
performance references.
11+
12+
Current retained research:
13+
14+
- `backtest_video_qqq_tqqq_dual_drive.py`
15+
- `results/video_qqq_tqqq_dual_drive_comparison.csv`
16+
- `results/video_qqq_tqqq_dual_drive_recommendation.json`
17+
- `results/video_qqq_tqqq_dual_drive_summary.md`
18+
19+
Use `UsEquitySnapshotPipelines` outputs when reviewing snapshot-backed live
20+
strategy performance.

research/README_stock_alpha.md

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)