INNER CODE UNIT · Python
strategy
Delta-F/deltafstation · backend/app.py:117
def strategy():
"""策略回测页。"""
return render_template('backtest.html')
@app.route('/trading')
def trading():
"""手动交易页。"""
return render_template('trader.html')
@app.route('/run')
def run():
"""运行策略页。"""
return render_template('gostrategy.html')
# SSE 日志流
@app.route('/api/logs/stream')
def stream_logs():
"""日志实时流(SSE)。