File tree 3 files changed +14
-12
lines changed
3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 19
19
10 . 修改vnpy_ctastrategy使用vnpy.trader.database中统一定义的时区来加载数据
20
20
11 . 增加vnpy_ctastrategy策略模板的合约乘数查询函数get_size
21
21
12 . 增加vnpy_spreadtrading回测中统计绩效时对于爆仓情况的检查
22
-
22
+ 13 . 增加vnpy_scripttrader基于vt_symbol和direction查询持仓数据的函数
23
+ 14 . 修改vt_positionid的字符串内容,增加gateway_name前缀标识
23
24
24
25
## 修复
25
26
Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ pypi_index=$2
5
5
shift 2
6
6
7
7
8
- [[ -z $python ]] && python=python
9
- [[ -z $pypi_index ]] && pypi_index=https://pypi.org /simple
8
+ [[ -z $python ]] && python=python3
9
+ [[ -z $pypi_index ]] && pypi_index=https://pypi.douban.com /simple
10
10
11
11
$python -m pip install --upgrade pip wheel --index $pypi_index
12
12
13
13
# Get and build ta-lib
14
14
function install-ta-lib()
15
15
{
16
16
# install numpy first
17
- $python -m pip install numpy==1.21.5 --index $pypi_index
17
+ $python -m pip install numpy==1.23.1 --index $pypi_index
18
18
19
19
pushd /tmp
20
20
wget https://pip.vnpy.com/colletion/ta-lib-0.4.0-src.tar.gz
@@ -41,4 +41,3 @@ locale-gen zh_CN.GB18030
41
41
42
42
# Install VeighNa
43
43
$python -m pip install . --index $pypi_index
44
-
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
python=$1
4
- shift 1
4
+ pypi_index=$2
5
+ shift 2
5
6
6
- [[ -z $python ]] && python=python
7
+ [[ -z $python ]] && python=python3
8
+ [[ -z $pypi_index ]] && pypi_index=https://pypi.douban.com/simple
7
9
8
- $python -m pip install --upgrade pip wheel
10
+ $python -m pip install --upgrade pip wheel --index $pypi_index
9
11
10
12
# Get and build ta-lib
11
13
function install-ta-lib()
@@ -20,11 +22,11 @@ function ta-lib-exists()
20
22
ta-lib-exists || install-ta-lib
21
23
22
24
# install ta-lib
23
- $python -m pip install numpy==1.21.5
24
- $python -m pip install ta-lib==0.4.24
25
+ $python -m pip install numpy==1.23.1 --index $pypi_index
26
+ $python -m pip install ta-lib==0.4.24 --index $pypi_index
25
27
26
28
# Install Python Modules
27
- $python -m pip install -r requirements.txt
29
+ $python -m pip install -r requirements.txt --index $pypi_index
28
30
29
31
# Install VeighNa
30
- $python -m pip install . $@
32
+ $python -m pip install . --index $pypi_index
You can’t perform that action at this time.
0 commit comments