diff --git a/hts/HTS.py b/hts/HTS.py index 2af5b51..9118a68 100644 --- a/hts/HTS.py +++ b/hts/HTS.py @@ -551,7 +551,7 @@ class HTS: conn = sqlite3.connect(os.path.join(self.RESOURCE_PATH, "hts.db")) cursor = conn.cursor() - cursor.execute('SELECT ymd, hms, open, high, low, close, vol FROM ' + tableName + ' WHERE CODE=? and ymd=? order by ymd, hms', (stock_code, lastday,)) + cursor.execute('SELECT ymd, hms, open, high, low, close, volume FROM ' + tableName + ' WHERE CODE=? and ymd=? order by ymd, hms', (stock_code, lastday,)) db_result = cursor.fetchall() for rows in db_result: ymd = rows[0] # hts.날짜