fix: remove nonexistent change column from price collector OHLCV mapping
All checks were successful
Deploy to Production / deploy (push) Successful in 1m10s

pykrx get_market_ohlcv returns 6 data columns (시가/고가/저가/종가/거래량/거래대금),
not 7. The 등락률 (change) column does not exist, causing a length mismatch error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
zephyrdark 2026-02-10 23:27:23 +09:00
parent 8b9fe7064c
commit 08710a6dba

View File

@ -78,10 +78,10 @@ class PriceCollector(BaseCollector):
df = df.reset_index()
df.columns = ["date", "open", "high", "low", "close", "volume",
"value", "change"]
"value"]
# Validate column count
expected_cols = 8 # date + 7 data columns
expected_cols = 7 # date + 6 data columns
if len(df.columns) < expected_cols:
logger.warning(f"Unexpected column count for {ticker}: {len(df.columns)}")
continue