Skip to content

Commit

Permalink
Merge branch 'master' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy authored Nov 18, 2018
2 parents ac626fd + 234a644 commit 1c613b2
Showing 1 changed file with 35 additions and 19 deletions.
54 changes: 35 additions & 19 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,41 @@ function check_result() {
}

#Build ctp/lts/ib api
pushd vnpy/api/ctp
bash build.sh
check_result "build api.ctp"
popd

pushd vnpy/api/lts
bash build.sh
check_result "build api.lts"
popd

pushd vnpy/api/xtp
bash build.sh
check_result "build api.xtp"
popd

pushd vnpy/api/ib
bash build.sh
check_result "build api.ib"
popd
echo "是否要安装'CTP'接口? (Do you need 'CTP' interface?)"
read -p "Enter [y]n: " var1
var1=${var1:-y}
if [ "$var1" = "y" ]; then
pushd vnpy/api/ctp
bash build.sh
popd
fi

echo "是否要安装'LTS'接口? (Do you need 'LTS' interface?)"
read -p "Enter [y]n: " var1
var1=${var1:-y}
if [ "$var1" = "y" ]; then
pushd vnpy/api/lts
bash build.sh
popd
fi

echo "是否要安装'XTP'接口? (Do you need 'XTP' interface?)"
read -p "Enter [y]n: " var1
var1=${var1:-y}
if [ "$var1" = "y" ]; then
pushd vnpy/api/xtp
bash build.sh
popd
fi

echo "是否要安装'IB'接口? (Do you need 'IB' interface?)"
read -p "Enter [y]n: " var1
var1=${var1:-y}
if [ "$var1" = "y" ]; then
pushd vnpy/api/ib
bash build.sh
popd
fi

#Install Python Modules
pip install -r requirements.txt
Expand Down

0 comments on commit 1c613b2

Please sign in to comment.