vnpy/install.sh

44 lines
741 B
Bash
Raw Normal View History

#!/bin/bash
2018-10-10 15:54:52 +00:00
function check_result() {
if [ $? -ne 0 ]; then
echo " "
echo "do command failed for $1 !!!"
echo " "
exit 1
fi
}
2017-07-15 10:36:19 +00:00
#Build ctp/lts/ib api
pushd vnpy/api/ctp
bash build.sh
2018-10-10 15:54:52 +00:00
check_result "build api.ctp"
popd
pushd vnpy/api/lts
bash build.sh
2018-10-10 15:54:52 +00:00
check_result "build api.lts"
popd
pushd vnpy/api/xtp
bash build.sh
2018-10-10 15:54:52 +00:00
check_result "build api.xtp"
popd
pushd vnpy/api/ib
bash build.sh
2018-10-10 15:54:52 +00:00
check_result "build api.ib"
popd
2017-07-15 10:36:19 +00:00
#Install Python Modules
pip install -r requirements.txt
2017-07-15 10:36:19 +00:00
#Install Ta-Lib
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda install -c quantopian ta-lib=0.4.9
2017-07-15 10:36:19 +00:00
#Install vn.py
python setup.py install