Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/build_runtime_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)


DEFAULT_ARTIFACT_BUCKET_URI = "gs://qsl-runtime-logs-interactivebrokersquant"
DEFAULT_ARTIFACT_BUCKET_URI = "gs://qsl-runtime-logs-shared"
MARKET_REGIME_CONTROL_PROFILES = frozenset(
{
"tqqq_growth_income",
Expand Down
10 changes: 10 additions & 0 deletions tests/test_runtime_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ def test_build_switch_target_defaults_longbridge_sg_tqqq(self):
self.assertEqual(assignments["LONGBRIDGE_DRY_RUN_ONLY"], "false")
plugin_payload = json.loads(assignments["LONGBRIDGE_STRATEGY_PLUGIN_MOUNTS_JSON"])
self.assertEqual(plugin_payload["strategy_plugins"][0]["plugin"], "market_regime_control")
self.assertEqual(
plugin_payload["strategy_plugins"][0]["signal_path"],
"gs://qsl-runtime-logs-shared/strategy-artifacts/us_equity/"
"tqqq_growth_income/plugins/market_regime_control/latest_signal.json",
)
self.assertEqual(plugin_payload["strategy_plugins"][0]["expected_schema_version"], "market_regime_control.v1")

def test_build_switch_target_uses_fork_repository_overrides(self):
Expand Down Expand Up @@ -654,6 +659,11 @@ def test_build_switch_target_patches_ibkr_service_targets_json(self):
selected["IBKR_STRATEGY_PLUGIN_MOUNTS_JSON"]["strategy_plugins"][0]["plugin"],
"market_regime_control",
)
self.assertEqual(
selected["IBKR_STRATEGY_PLUGIN_MOUNTS_JSON"]["strategy_plugins"][0]["signal_path"],
"gs://qsl-runtime-logs-shared/strategy-artifacts/us_equity/"
"tqqq_growth_income/plugins/market_regime_control/latest_signal.json",
)
self.assertEqual(untouched["runtime_target"]["strategy_profile"], "soxl_soxx_trend_income")

def test_build_switch_target_can_clear_preserved_ibkr_reserved_cash_fields(self):
Expand Down