From 24f26f5e98a3c06208e8997d3ec2f0b04716ead9 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sun, 2 Feb 2025 00:46:14 +0200 Subject: [PATCH] dotenv --- crypto/brian/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/brian/index.py b/crypto/brian/index.py index 18b1e10..397e46e 100644 --- a/crypto/brian/index.py +++ b/crypto/brian/index.py @@ -4,6 +4,7 @@ import asyncio if sys.platform == 'win32': asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) +from dotenv import load_dotenv import os import time import ccxt.async_support as ccxt @@ -304,4 +305,5 @@ async def main_backtest(): await exchange.close() if __name__ == "__main__": + load_dotenv() asyncio.run(main_backtest()) \ No newline at end of file