Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 750 Bytes

Install_guide.md

File metadata and controls

48 lines (32 loc) · 750 Bytes

Install

Setup

  1. 下载安装Conda
wget https://repo.continuum.io/archive/Anaconda3-5.3.1-Linux-x86_64.sh
bash Anaconda3-5.3.1-Linux-x86_64.sh
  1. 编辑 ~/.basrc 文件,在最后面加上

export PATH=/home/aeasringnar/anaconda3/bin:$PATH

保存退出后:source ~/.bashrc

  1. 再次输入conda list测试

  2. 创建conda环境:

conda create -n Qbot python=3.9
conda activate Qbot

pip install -r requirements.txt

Prepare

申请聚宽账号,设置环境变量:

export USER_ID="admin"
export PASSWORD="admin1234."

RUN

Auto run with ci, eg:

python main.py
# if run on Mac, please use 'pythonw main.py'

cd  pytrader
python test_backtrade.py
python test_trader.py