diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..5f97900e --- /dev/null +++ b/install.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +::Build ctp/lts/ib api +pushd vnpy/api/ctp +bash build.sh +popd + +pushd vnpy/api/lts +bash build.sh +popd + +pushd vnpy/api/ib +bash build.sh +popd + +::Install Python Modules +pip install -r requirements.txt + +::Install Ta-Lib +conda install -c quantopian ta-lib=0.4.9 + +:: Install vn.py +python setup.py install + diff --git a/vnpy/api/ctp/build.sh b/vnpy/api/ctp/build.sh index 5427f2f6..8974b5fc 100644 --- a/vnpy/api/ctp/build.sh +++ b/vnpy/api/ctp/build.sh @@ -12,6 +12,6 @@ cmake .. make VERBOSE=1 -j 1 ln -fs `pwd`/lib/vnctpmd.so ../vnctpmd/test/vnctpmd.so ln -fs `pwd`/lib/vnctptd.so ../vnctptd/test/vnctptd.so -cp ../vnctpmd/test/vnctpmd.* ../../vn.trader/gateway/ctpGateway/ -cp ../vnctptd/test/vnctptd.* ../../vn.trader/gateway/ctpGateway/ +cp ../vnctpmd/test/vnctpmd.* ./ +cp ../vnctptd/test/vnctptd.* ./ popd diff --git a/vnpy/api/ib/build.sh b/vnpy/api/ib/build.sh index 948b6119..b9b36994 100644 --- a/vnpy/api/ib/build.sh +++ b/vnpy/api/ib/build.sh @@ -7,6 +7,11 @@ rm -rf $BUILDDIR if [ ! -f $BUILDDIR ]; then mkdir -p $BUILDDIR fi + +pushd ibapi/linux +bash build.sh +popd + pushd $BUILDDIR cmake .. make VERBOSE=1 -j 1