fix(시세): LS spill-only·토큰 파일캐시·호가 snap_time 3초컷
- _feed_fallback 미러 OFF, LS cap/grace/hold RAM을 KIS·키움 spill과 정합 - LS 접근토큰 .ls_token_cache_*.json (재시작 재사용, revoke 루프 없음) - 호가 RAM을 틱과 동일 LIVE_FEED_FALLBACK(snap_time)로 컷, 필터 max_age=0은 유지 - 익절 지정가 로그에 실제 호가 벤더(kis/kiwoom/ls 1·2·3차) 표기 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -220,7 +220,10 @@ def subscribe_codes(db: Any, market_type: str) -> List[Dict[str, Any]]:
|
||||
|
||||
|
||||
def should_persist_ls(code: str, perm_codes: Optional[set] = None) -> bool:
|
||||
"""LS DB 적재: 영구구독 enabled 코드만 (후보 spill 제외)."""
|
||||
"""LS 봉·VI DB 적재: 영구구독 enabled 코드만.
|
||||
|
||||
체결틱·호가 DB 는 ``KISTrader._ls_is_subscribed``(구독 전체) — 여기 쓰지 말 것.
|
||||
"""
|
||||
c = str(code or "").strip()
|
||||
if not c:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user