From 985445d8145edfb3ecef6cf5585d8fafd0c5225e Mon Sep 17 00:00:00 2001 From: Petr Vlasak Date: Wed, 28 Feb 2024 08:04:02 +0100 Subject: [PATCH] user_data_dir function has a second parameter author, ACCOUNT1_LIVE has still PAPER_API_KEY and SECRET_KEY --- v2realbot/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2realbot/config.py b/v2realbot/config.py index 79ce425..43dd655 100644 --- a/v2realbot/config.py +++ b/v2realbot/config.py @@ -62,7 +62,7 @@ BT_FILL_PRICE_MARKET_ORDER_PREMIUM = 0.005 COUNT_API_REQUESTS = False #stratvars that cannot be changed in gui STRATVARS_UNCHANGEABLES = ['pendingbuys', 'blockbuy', 'jevylozeno', 'limitka'] -DATA_DIR = user_data_dir("v2realbot") +DATA_DIR = user_data_dir("v2realbot", "david") MODEL_DIR = Path(DATA_DIR)/"models" #BT DELAYS #profiling @@ -152,8 +152,8 @@ except ValueError: ACCOUNT1_PAPER_FEED = DataFeed.SIP #PRIMARY LIVE -ACCOUNT1_LIVE_API_KEY = os.environ.get('ACCOUNT1_LIVE_API_KEY') -ACCOUNT1_LIVE_SECRET_KEY = os.environ.get('ACCOUNT1_LIVE_SECRET_KEY') +ACCOUNT1_LIVE_API_KEY = os.environ.get('ACCOUNT1_PAPER_API_KEY') +ACCOUNT1_LIVE_SECRET_KEY = os.environ.get('ACCOUNT1_PAPER_SECRET_KEY') ACCOUNT1_LIVE_MAX_BATCH_SIZE = 1 ACCOUNT1_LIVE_PAPER = False #ACCOUNT1_LIVE_FEED = DataFeed.SIP