1、搭建liunx环境
可以是centos7
2、安装python3或anaconda3
3、安装接口 pip3 install python-okx
4、下载接口文件
https://github.com/okxapi/python-okx
5、解压python-okx-master
除了okx文件夹,其它的全删
6、安装常用的python工具
pip3 install --upgrade pip
pip3 install pandas jupyter notebook backtrader matplotlib==3.2.2
7、安装TA-Lib
https://ta-lib.org/hdr_dw.html
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -xzf ta-lib-0.4.0-src.tar.gz
./configure --prefix=/usr
make
sudo make install
yum install python3-devel
pip3 install TA-Lib