feat: 틱/호가 데이터 출처 표출 UI 추가 및 데이터 수집 개선

- 백테스트 및 실거래 시 틱과 호가의 벤더 출처(ob_source, entry_source) 기록 및 추적 강화 (tail_engine.py)
- 웹 UI '체결디버그'에 [틱:kis / 호가:ls] 형태로 데이터 출처를 직관적으로 표출 (backtest.js, backtest.html)
- LS WebSocket 구독 100건 제한 하드코딩 해제 및 env_config_ext 연동 (ls_ws.py)
- 기타 백테스트 웹 및 DB 관련 최적화 적용
This commit is contained in:
Your Name
2026-09-02 20:53:16 +09:00
parent 2c37771a16
commit 253c95e2c2
11 changed files with 1141 additions and 234 deletions

View File

@@ -1509,6 +1509,15 @@
</div>
</div>
</div>
<div id="tl_ob_whip_hidden" class="d-none" aria-hidden="true">
<input type="hidden" id="tl_h_whipsaw_filter" value="">
<input type="hidden" id="tl_h_whipsaw_sub" value="">
<input type="hidden" id="tl_h_whipsaw_lb" value="">
<input type="hidden" id="tl_h_whipsaw_dip" value="">
<input type="hidden" id="tl_h_whipsaw_tol" value="">
<input type="hidden" id="tl_h_min_bid_ask_ratio" value="">
<input type="hidden" id="tl_h_ob_ask_max_mult" value="">
</div>
<div class="row g-2 align-items-end mt-1">
<div class="col-12 col-md-auto mt-2 d-flex gap-2 flex-wrap align-items-center">
<button class="btn btn-primary px-4" id="tl_btn_run_bg" onclick="btJobStart('tail')">🚀 백그라운드 실행</button>
@@ -1518,13 +1527,14 @@
<button class="btn btn-outline-info px-3" onclick="loadTailSearchResults()">📂 탐색결과 불러오기</button>
</div>
<div class="col-12">
<div id="tl_optuna_ob_whip_banner" class="small text-info d-none mb-1"></div>
<div class="optuna-prog-track mb-1" style="height:10px;max-width:480px">
<div class="optuna-prog-fill" id="tlbt_tab_fill" style="width:0%"></div>
</div>
<div class="text-muted" style="font-size:11px" id="tlbt_tab_status">
백그라운드=CLI 잡(타임아웃 없음) · <b>탭을 옮겨도 계속 실행</b> · 상단 바로 진행률 ·
<b>전역 1잡</b>(스캘핑/돌파/모멘텀과 동시 실행 불가) · 파라미터=DB(+기간/틱) ·
동기 실행=기존 HTTP(짧을 때)
<b>전역 1잡</b>(스캘핑/돌파/모멘텀과 동시 실행 불가) ·
<b>파라미터=현재 폼(+Optuna hidden 호가/휩쏘)</b> · 동기 실행=HTTP(짧을 때)
</div>
</div>
</div>
@@ -4506,6 +4516,6 @@
</div>
</div>
<script src="{{ url_for('static', filename='js/backtest.js') }}?v=20260901opt_params_ui4"></script>
<script src="{{ url_for('static', filename='js/backtest.js') }}?v=20260901opt_bg_pctfix"></script>
</body>
</html>