update logs dir and data dir
This commit is contained in:
parent
42f5064e77
commit
675ffb46a6
@ -16,14 +16,14 @@ class Config:
|
|||||||
MARKET_CLOSE_TIME = os.environ.get("MARKET_CLOSE_TIME", "15:10")
|
MARKET_CLOSE_TIME = os.environ.get("MARKET_CLOSE_TIME", "15:10")
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
LOG_DIR = "../logs"
|
LOG_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "logs")
|
||||||
LOG_LEVEL = "INFO"
|
LOG_LEVEL = "INFO"
|
||||||
LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
LOG_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
||||||
LOG_MAX_BYTES = 10 * 1024 * 1024 # 10MB
|
LOG_MAX_BYTES = 10 * 1024 * 1024 # 10MB
|
||||||
LOG_BACKUP_COUNT = 5
|
LOG_BACKUP_COUNT = 5
|
||||||
|
|
||||||
# strategy data
|
# strategy data
|
||||||
DATA_DIR = "../data"
|
DATA_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "data")
|
||||||
|
|
||||||
# API Rate limiting
|
# API Rate limiting
|
||||||
RATE_LIMIT_REQUESTS = 100
|
RATE_LIMIT_REQUESTS = 100
|
||||||
|
Loading…
x
Reference in New Issue
Block a user