Skip to content

Commit

Permalink
Merge pull request vnpy#2627 from vnpy/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
vnpy authored Aug 11, 2020
2 parents dfde3df + 0f673ac commit cd789eb
Show file tree
Hide file tree
Showing 170 changed files with 46,345 additions and 233 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
</p>

<p align="center">
<img src ="https://img.shields.io/badge/version-2.1.4-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-2.1.5-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.7-blue.svg" />
<img src ="https://img.shields.io/github/workflow/status/vnpy/vnpy/Python%20application/master"/>
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
</p>

vn.py是一套基于Python的开源量化交易系统开发框架,于2015年1月正式发布,在开源社区6年持续不断的贡献下一步步成长为全功能量化交易平台,目前国内外金融机构用户已经超过500家,包括:私募基金、证券自营和资管、期货资管和子公司、高校研究机构、自营交易公司、交易所、Token Fund等。
vn.py是一套基于Python的开源量化交易系统开发框架,于2015年1月正式发布,在开源社区6年持续不断的贡献下一步步成长为全功能量化交易平台,目前国内外金融机构用户已经超过600家,包括:私募基金、证券自营和资管、期货资管和子公司、高校研究机构、自营交易公司、交易所、Token Fund等。

全新的《vn.py全实战进阶》系列在线课程,已经在官方微信公众号[**vnpy-community**]上线,覆盖CTA策略(已完成)、期权波动率交易(更新中)等内容。购买请扫描下方二维码关注后,点击菜单栏的【进阶课程】按钮即可:

Expand Down Expand Up @@ -42,6 +42,8 @@ vn.py是一套基于Python的开源量化交易系统开发框架,于2015年1

* 恒生UFT(uft):国内期货、ETF期权

* 飞创证券(sec):ETF期权

* 宽睿(oes):国内证券(A股)

* 中泰XTP(xtp):国内证券(A股)、ETF期权
Expand Down Expand Up @@ -130,7 +132,7 @@ vn.py是一套基于Python的开源量化交易系统开发框架,于2015年1

* portfolio_strategy:组合策略模块,面向同时交易多合约的量化策略(Alpha、期权套利等),提供历史数据回测和实盘自动交易功能

* algo_trading:算法交易模块,提供多种常用的智能交易算法:TWAP、Sniper、Iceberg、BestLimit等等,支持常用算法配置保存
* algo_trading:算法交易模块,提供多种常用的智能交易算法:TWAP、Sniper、Iceberg、BestLimit等,支持对接外部智能算法交易服务(如金纳算法)

* script_trader:脚本策略模块,针对多标的组合类交易策略设计,同时也可以直接在命令行中实现REPL指令形式的交易,不支持回测功能

Expand Down Expand Up @@ -162,7 +164,7 @@ vn.py是一套基于Python的开源量化交易系统开发框架,于2015年1

## 环境准备

* 推荐使用vn.py团队为量化交易专门打造的Python发行版[VNStudio-2.1.4](https://download.vnpy.com/vnstudio-2.1.4.exe),内置了最新版的vn.py框架以及VN Station量化管理平台,无需手动安装
* 推荐使用vn.py团队为量化交易专门打造的Python发行版[VNStudio-2.1.5](https://download.vnpy.com/vnstudio-2.1.5.exe),内置了最新版的vn.py框架以及VN Station量化管理平台,无需手动安装
* 支持的系统版本:Windows 7以上/Windows Server 2008以上/Ubuntu 18.04 LTS
* 支持的Python版本:Python 3.7 64位(**注意必须是Python 3.7 64位版本**

Expand Down
3 changes: 2 additions & 1 deletion install.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
:: Upgrade pip & setuptools
python -m pip install --upgrade pip setuptools

::Install talib and ibapi
::Install prebuild wheel
python -m pip install https://pip.vnpy.com/colletion/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
python -m pip install https://pip.vnpy.com/colletion/quickfix-1.15.1-cp37-cp37m-win_amd64.whl

::Install Python Modules
python -m pip install -r requirements.txt
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ deap
pyzmq
wmi
QScintilla
plotly
plotly
quickfix
1 change: 0 additions & 1 deletion vnpy/api/ihq/generator/ihq_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,3 @@
"Ticker": "string",
"LastPrice": "double",
}

4 changes: 0 additions & 4 deletions vnpy/api/nst/generator/generate_api_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,6 @@ def generate_source_process(self):

struct_fields = self.structs[type_]
for struct_field, struct_type in struct_fields.items():


if struct_type == "string":
f.write(
f"\t\terror[\"{struct_field}\"] = toUtf(task_error->{struct_field});\n")
Expand Down Expand Up @@ -295,8 +293,6 @@ def generate_source_function(self):

type_ = list(d.values())[0]
f.write(f"\t{type_} myreq = {type_}();\n")


f.write(f"\tint i = this->api->{name}();\n")
f.write("\treturn i;\n")
f.write("};\n\n")
Expand Down
3 changes: 0 additions & 3 deletions vnpy/api/nst/generator/generate_data_type_nst.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ def process_define(self, line: str):
value = content.split("'")[1]
new_line = f"{name} = \'{value}\'\n"
self.f_define.write(new_line)


elif "-" in content:
name = content.split("-")[0]
value = content.split("-")[1]
Expand All @@ -82,7 +80,6 @@ def process_define(self, line: str):
new_line = f"{name} = {value}\n"
self.f_define.write(new_line)


def process_typedef(self, line: str):
"""处理类型定义"""
line = line.replace("\t", "")
Expand Down
2 changes: 1 addition & 1 deletion vnpy/api/nst/generator/generate_struct_nst.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def process_line(self, line: str):
self.process_end(line)
elif "///" not in line and "#" not in line:
self.process_member(line)

def process_enum_name(self, line: str):
""""""
words = line.split(" ")
Expand Down
2 changes: 1 addition & 1 deletion vnpy/api/nst/generator/nst_constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@
EXCHANGE_CZCE = 4
EXCHANGE_SZSE = 5
EXCHANGE_SSE = 6
EXCHANGE_UNKNOWN = 7
EXCHANGE_UNKNOWN = 7
2 changes: 1 addition & 1 deletion vnpy/api/nst/nst_constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@
EXCHANGE_CZCE = 4
EXCHANGE_SZSE = 5
EXCHANGE_SSE = 6
EXCHANGE_UNKNOWN = 7
EXCHANGE_UNKNOWN = 7
Binary file added vnpy/api/sec/DFITCSECMdApi.dll
Binary file not shown.
Binary file added vnpy/api/sec/DFITCSECTraderApi.dll
Binary file not shown.
Binary file added vnpy/api/sec/HsFutuSystemInfo.dll
Binary file not shown.
Binary file added vnpy/api/sec/InformationCollect.dll
Binary file not shown.
3 changes: 3 additions & 0 deletions vnpy/api/sec/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .vnsecmd import MdApi
from .vnsectd import TdApi
from .sec_constant import *
Loading

0 comments on commit cd789eb

Please sign in to comment.