feat: 모의 자동매매 자동체결 + 손익/이력 조회
- score-engine: TRADE_SETTINGS.auto_execute(기본 True) — auto_trade_scan_job이 제안한 pending 주문을 즉시 자동 체결(모의). 체결로직을 _fill_order로 추출(수동버튼/자동 공용). /trade/history: 체결이력+일별 실현/평가손익+보유 평가손익. (전부 DB 시뮬레이션, 실제 브로커 전송 없음) - dashboard-api: /api/trade-history 프록시. - 가드 그대로: 종목당10%·일일손실-3% halt·강력매수+두LLM일치+확신도4·손절-8%·익절+15%. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2110,6 +2110,11 @@ async def proxy_decisions_accuracy(days: int = Query(default=60, ge=7, le=365)):
|
||||
"""결정안 실측 성과 (score-engine /decisions/accuracy)"""
|
||||
return await _proxy_get(f"{SCORE_ENGINE_URL}/decisions/accuracy?days={days}")
|
||||
|
||||
@app.get("/api/trade-history")
|
||||
async def proxy_trade_history(days: int = Query(default=30, ge=1, le=365)):
|
||||
"""모의매매 이력 + 손익 (score-engine /trade/history)"""
|
||||
return await _proxy_get(f"{SCORE_ENGINE_URL}/trade/history?days={days}")
|
||||
|
||||
|
||||
async def _enrich_kr_names(rows):
|
||||
"""rows의 kr_code/stock_code에 dart_corps.corp_name을 kr_name으로 첨부"""
|
||||
|
||||
Reference in New Issue
Block a user