이번에 들어간 내용
한투 호가 = 2번째 앱키 전용 키 없거나 start 실패 시 메인에 H0STASP0 안 붙임. 운영설정 WS_ORDERBOOK_SAVE_KIS 빨간 danger. LS RAM 합집합 후보∪보유∪영구∪grace. sync_targets와 split reconcile 둘 다. 틱 DB 영구 게이트는 그대로. 분봉 쓰레기 → 다음 소스 봉 통째 그 분 틱 0건이거나 전부 봉끝 대비 LIVE_FEED_FALLBACK_MAX_AGE_SEC 초과면 구멍. 메인 WS → 2차 → LS → REST → rollup. CANDLE_GARBAGE_FALLBACK 기본 true. 파일: feed_fallback.py(신규), ws_manager.py, kis_ws.py, candle_series.py, bt_candle_source.py, live_config_schema.py, database.py, 스모크, MD 2개. 같은 ws_manager/database/kis_ws/live_config에는 직전 커밋 이후 쌓여 있던 시세 폴백·ENV 키 정리도 같이 들어갔습니다. 파일 단위로 나눌 수 없어서입니다.
This commit is contained in:
@@ -115,7 +115,7 @@ class DartStrategy(BaseStrategy):
|
||||
}
|
||||
|
||||
def _force_buy_test(self, code: str, name: str) -> Optional[Dict]:
|
||||
wsd = self.ws.get_price(code)
|
||||
wsd = self._ws_last_quote(code)
|
||||
px = 0.0
|
||||
if wsd:
|
||||
try:
|
||||
@@ -212,15 +212,9 @@ class DartStrategy(BaseStrategy):
|
||||
max_price = float(holding.get("max_price", buy_price))
|
||||
if qty <= 0 or buy_price <= 0:
|
||||
continue
|
||||
current_price = 0.0
|
||||
wsd = self.ws.get_price(code)
|
||||
if wsd:
|
||||
try:
|
||||
current_price = abs(
|
||||
float(str(wsd.get("stck_prpr", 0)).replace(",", ""))
|
||||
)
|
||||
except Exception:
|
||||
current_price = 0.0
|
||||
current_price = self._resolve_sell_price(
|
||||
code, is_eod=False, buy_price=buy_price,
|
||||
)
|
||||
if current_price <= 0:
|
||||
continue
|
||||
if current_price > max_price:
|
||||
|
||||
Reference in New Issue
Block a user