Fix missing recommend_payload import; raise small-account cap to 200k.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+11
-2
@@ -28,7 +28,16 @@ from position_sizing import (
|
||||
calc_order_tick_metrics,
|
||||
normalize_sizing_mode,
|
||||
)
|
||||
from product_recommend import assert_product_allowed_for_capital, is_small_account, SMALL_ACCOUNT_SCOPE_LABEL
|
||||
from product_recommend import (
|
||||
assert_product_allowed_for_capital,
|
||||
is_small_account,
|
||||
small_account_scope_hint,
|
||||
SMALL_ACCOUNT_SCOPE_LABEL,
|
||||
)
|
||||
from recommend_store import (
|
||||
recommend_payload,
|
||||
refresh_recommend_cache,
|
||||
)
|
||||
from recommend_stream import recommend_hub, schedule_recommend_refresh, start_recommend_worker
|
||||
from position_stream import position_hub, start_position_worker
|
||||
from ctp_settings import is_ctp_auto_connect_enabled
|
||||
@@ -1643,7 +1652,7 @@ def install_trading(app, *, login_required, require_nav, get_db, get_setting, se
|
||||
recommend_updated_at=rec_cache.get("updated_at"),
|
||||
night_session=is_night_trading_session(),
|
||||
small_account_scope=is_small_account(capital),
|
||||
small_account_scope_label=SMALL_ACCOUNT_SCOPE_LABEL,
|
||||
small_account_scope_hint=small_account_scope_hint(),
|
||||
product_categories=PRODUCT_CATEGORIES,
|
||||
)
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user