添加数据库文件
This commit is contained in:
1 parent
59fcb11ffa
commit
fcf64f4a3d
1 file changed
+1
-1
+1
-1
@@ -8,7 +8,7 @@ import os
|
|||||||
class DatabaseManager:
|
class DatabaseManager:
|
||||||
"""Manages SQLite database for storing OHLCV data."""
|
"""Manages SQLite database for storing OHLCV data."""
|
||||||
|
|
||||||
def __init__(self, db_path: str = "./data/cache/market_data.db"):
|
def __init__(self, db_path: str = "./data/market_data.db"):
|
||||||
self.db_path = Path(db_path)
|
self.db_path = Path(db_path)
|
||||||
self.db_path.parent.mkdir(parents=True, exist_ok=True)
|
self.db_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
self.initialize_db()
|
self.initialize_db()
|
||||||
|
|||||||
Reference in new issue
Block a user