新增实例数据统计页:复盘 KPI 上、资金曲线下,系统设置可关。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1581,6 +1581,9 @@ def init_db():
|
||||
from lib.options.options_db import init_options_tables
|
||||
|
||||
init_options_tables(conn)
|
||||
from lib.instance.instance_cash_sample_lib import init_cash_sample_table
|
||||
|
||||
init_cash_sample_table(conn)
|
||||
from lib.sim.db_lib import init_sim_tables
|
||||
init_sim_tables(conn)
|
||||
from lib.trade.account_risk_lib import ensure_account_risk_schema
|
||||
@@ -4277,7 +4280,10 @@ def records_page():
|
||||
@app.route("/stats")
|
||||
@login_required
|
||||
def stats_page():
|
||||
return redirect("/options")
|
||||
redir = redirect_to_embed_shell_if_enabled("stats")
|
||||
if redir is not None:
|
||||
return redir
|
||||
return render_main_page("stats")
|
||||
|
||||
|
||||
@app.route("/dashboard")
|
||||
@@ -5730,6 +5736,10 @@ from lib.options.options_review_register import install_options_review
|
||||
|
||||
install_options_review(app, _REPO_ROOT, app_module=sys.modules[__name__])
|
||||
|
||||
from lib.instance.instance_data_stats_register import install_instance_data_stats
|
||||
|
||||
install_instance_data_stats(app, sys.modules[__name__])
|
||||
|
||||
from lib.hub.hub_bridge_register import register_hub_bridge_routes
|
||||
|
||||
register_hub_bridge_routes(app, sys.modules[__name__])
|
||||
|
||||
Reference in New Issue
Block a user