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
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,13 +66,14 @@ Telegram notifications include structured execution and heartbeat messages, with
66
66
|`STRATEGY_PROFILE`| Yes | Strategy profile selector. Set explicitly per deployment; enabled values include `global_etf_confidence_vol_gate`, `global_etf_rotation`, `mega_cap_leader_rotation_top50_balanced`, `russell_1000_multi_factor_defensive`, `soxl_soxx_trend_income`, `tech_communication_pullback_enhancement`, and `tqqq_growth_income`|
67
67
|`ACCOUNT_REGION`| No | Account region marker for platform-style deployment (e.g. `HK`, `SG`; defaults to `ACCOUNT_PREFIX` / `DEFAULT`) |
68
68
|`LONGBRIDGE_DRY_RUN_ONLY`| No | Set to `true` to keep the selected deployment in dry-run mode. |
69
+
|`LONGBRIDGE_FRACTIONAL_LIMIT_BUY_FALLBACK_TO_MARKET`| No | Set to `true` to convert fractional `limit buy` orders to `market buy` orders instead of skipping them. |
69
70
|`LONGBRIDGE_DEBUG_POSITION_SNAPSHOT`| No | Set to `true` to log raw LongBridge position quantity and available quantity for troubleshooting. |
70
71
|`INCOME_THRESHOLD_USD`| No | Optional override for the `tqqq_growth_income` income-layer threshold. Leave unset to use the strategy package default. |
71
72
|`QQQI_INCOME_RATIO`| No | Optional override for QQQI's share of the `tqqq_growth_income` income layer, 0–1. |
72
73
|`NOTIFY_LANG`| No | Notification language: `en` (English, default) or `zh` (Chinese) |
73
74
|`GOOGLE_CLOUD_PROJECT`| No | GCP project ID (defaults to ADC project when unset) |
74
75
75
-
Strategy allocation can still target fractional dollar values and fractional position weights. The LongBridge execution layer submits whole-share orders only because OpenAPI `submit_order` rejects fractional submitted quantities on the tested accounts. When a target value is zero, sell sizing uses the sellable whole-share position quantity instead of re-deriving shares from current price, so liquidation targets do not leave a residual share because of quote drift.
76
+
Strategy allocation can still target fractional dollar values and fractional position weights. The LongBridge execution layer keeps the tested conservative rule: `limit buy` orders stay whole-share only by default, while `market buy` / `market sell` and `limit sell` can preserve fractional quantities when the target quantity is at least 1 share. If you set `LONGBRIDGE_FRACTIONAL_LIMIT_BUY_FALLBACK_TO_MARKET=true`, fractional `limit buy` orders are downgraded to market buys instead of being skipped. When a target value is zero, sell sizing uses the sellable position quantity instead of re-deriving shares from current price, so liquidation targets do not leave a residual share because of quote drift.
76
77
77
78
Secret Manager must contain the secret named by `LONGPORT_SECRET_NAME` (default: `longport_token_hk`), where the **latest version = active access token**. The app refreshes it when expiry is within 30 days.
"buy_deferred_non_usd_cash": "Non-USD cash is present ({currencies}), but this US-equity strategy has USD cash ${available} and investable cash ${investable}; convert or deposit USD before buying",
144
145
"buy_deferred_small_cash": "{symbol} target gap ${diff}, but investable cash ${investable} is not enough for 1 share at ${price}",
145
146
"buy_deferred_cash_limit": "{symbol} target gap ${diff}, budget supports {budget_qty} shares, but broker estimate returned 0; an open order, settlement, or buying-power hold may still be blocking funds",
147
+
"fractional_limit_buy_fallback_to_market": "{symbol} fractional limit buy is unstable, falling back to market buy for {qty} shares; limit reference ${limit_price}, market reference ${market_price}",
0 commit comments