From 0f90c85ac3905157e0b88fc8e2967a7bd4998e56 Mon Sep 17 00:00:00 2001 From: janLajko Date: Wed, 9 Apr 2025 23:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0requirements.txt=E4=BB=A5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0pynacl=E5=92=8Chyperliquid-python-sdk?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=EF=BC=8C=E5=90=8C=E6=97=B6=E5=9C=A8run=5Fbot?= =?UTF-8?q?.py=E4=B8=AD=E6=B7=BB=E5=8A=A0funding=5Farbitrage=5Fbot?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=88=B0Python=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 4 +++- run_bot.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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()}")