You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,14 @@ This repository uses `QuantPlatformKit` for LongPort token handling, context boo
13
13
The `semiconductor_rotation_income` allocation logic is loaded from `UsEquityStrategies`. `LongBridgePlatform` keeps the LongPort runtime, token refresh, execution, and notification flow.
14
14
15
15
Full strategy documentation now lives in [`UsEquityStrategies`](https://github.com/QuantStrategyLab/UsEquityStrategies#semiconductor_rotation_income). The sections below focus on execution-side defaults and runtime behavior.
16
+
This runtime matrix is the authoritative enablement source for LongBridge. `UsEquityStrategies` only carries strategy-layer compatibility and metadata.
17
+
18
+
19
+
**LongBridge profile matrix**
20
+
21
+
| Canonical profile | Display name | Alias | Enabled | Default | Rollback | Domain | Runtime note |
22
+
| --- | --- | --- | --- | --- | --- | --- | --- |
23
+
|`semiconductor_rotation_income`| Semiconductor Trend Income |`semiconductor_trend_income`| Yes | Yes | Yes |`us_equity`| current LongBridge default |
|`ACCOUNT_REGION`| No | Account region marker for platform-style deployment (e.g. `HK`, `SG`; defaults to `ACCOUNT_PREFIX` / service-name suffix / `DEFAULT`) |
91
99
|`NOTIFY_LANG`| No | Notification language: `en` (English, default) or `zh` (Chinese) |
92
100
|`GOOGLE_CLOUD_PROJECT`| No | GCP project ID (defaults to ADC project when unset) |
@@ -110,7 +118,7 @@ Deploy the same codebase as multiple Cloud Run services (e.g. `HK` and `SG`) by
110
118
-`LONGPORT_SECRET_NAME`: point to different secrets (e.g. `longport_token_hk`, `longport_token_sg`)
111
119
-`ACCOUNT_PREFIX`: e.g. `HK`, `SG` (all Telegram/log alerts will include `[ACCOUNT_PREFIX/SERVICE_NAME]`)
112
120
-`SERVICE_NAME`: e.g. `longbridge-quant-semiconductor-rotation-income-hk`, `longbridge-quant-semiconductor-rotation-income-sg`
113
-
-`STRATEGY_PROFILE`: use `semiconductor_rotation_income` for the current LongBridge strategy profile
121
+
-`STRATEGY_PROFILE`: use canonical `semiconductor_rotation_income` for the current LongBridge strategy profile; alias `semiconductor_trend_income` resolves to the same strategy
114
122
- Current strategy domain is `us_equity`. The repo now keeps a small strategy registry so future strategy switching can grow by domain + profile, instead of mixing platform and strategy in one layer.
115
123
-`ACCOUNT_REGION`: explicitly mark the deployed account region (`HK` / `SG`); if unset, the app falls back to `ACCOUNT_PREFIX` or the `-hk` / `-sg` service-name suffix
0 commit comments