diff --git a/requirements.txt b/requirements.txt index 7fc6fab..d665e9f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,6 @@ websockets==12.0 python-dotenv==1.0.0 rich==13.7.0 requests==2.31.0 -httpx==0.27.0 \ No newline at end of file +httpx==0.27.0 +pynacl==1.5.0 +hyperliquid-python-sdk>=0.0.4 \ No newline at end of file diff --git a/run_bot.py b/run_bot.py index 7b2b88c..bb549ec 100644 --- a/run_bot.py +++ b/run_bot.py @@ -22,6 +22,11 @@ if project_root not in sys.path: sys.path.insert(0, project_root) +# 添加funding_arbitrage_bot目录到Python路径 +bot_dir = os.path.join(project_root, 'funding_arbitrage_bot') +if bot_dir not in sys.path: + sys.path.insert(0, bot_dir) + # 打印当前的Python路径,用于调试 print(f"Python路径: {sys.path}") print(f"当前工作目录: {os.getcwd()}")