Skip to content

Commit

Permalink
Merge pull request vnpy#2709 from vnpy/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
vnpy authored Oct 26, 2020
2 parents f53749d + 8c9b5cf commit b5f0cef
Show file tree
Hide file tree
Showing 332 changed files with 89,983 additions and 44,670 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
python -m pip install --upgrade pip
pip install https://pip.vnpy.com/colletion/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl
pip install https://pip.vnpy.com/colletion/quickfix-1.15.1-cp37-cp37m-win_amd64.whl
pip install https://pip.vnpy.com/colletion/ibapi-9.76.1.tar.gz
pip install -r requirements.txt
- name: Lint with flake8
run: |
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<img src ="https://img.shields.io/badge/version-2.1.6-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-2.1.7-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"/>
Expand Down Expand Up @@ -50,7 +50,7 @@ vn.py是一套基于Python的开源量化交易系统开发框架,于2015年1

* 恒生期权(hsoption):ETF期权

* 华鑫奇点(tora):国内证券(A股)
* 华鑫奇点(tora):国内证券(A股)、ETF期权

* 飞鼠(sgit):黄金TD、国内期货

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

* 火币永续(huobis):数字货币永续

* 火币期权(huobio):数字货币期权

* Gate.io永续(gateios):数字货币永续合约

* Deribit(deribit),数字货币期权、永续合约
Expand Down Expand Up @@ -136,6 +138,8 @@ vn.py是一套基于Python的开源量化交易系统开发框架,于2015年1

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

* market_radar:市场雷达模块,允许用户基于自定义的公式实时计算任意合约组合数据,公式支持标准Python运算语法以及内置函数

* paper_account:模拟交易模块,纯本地化实现的模拟交易功能,基于交易接口获取的实时行情进行委托撮合,提供委托成交推送以及持仓记录

* chart_wizard:K线图表模块,基于RQData数据服务(期货)或者交易接口(数字货币)获取历史数据,并结合Tick推送显示实时行情变化
Expand Down Expand Up @@ -166,7 +170,7 @@ vn.py是一套基于Python的开源量化交易系统开发框架,于2015年1

## 环境准备

* 推荐使用vn.py团队为量化交易专门打造的Python发行版[VNStudio-2.1.6](https://download.vnpy.com/vnstudio-2.1.6.exe),内置了最新版的vn.py框架以及VN Station量化管理平台,无需手动安装
* 推荐使用vn.py团队为量化交易专门打造的Python发行版[VNStudio-2.1.7](https://download.vnpy.com/vnstudio-2.1.7.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
66 changes: 43 additions & 23 deletions docs/gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,48 @@ def main():

## 接口分类

| 接口 | 类型 |
| -------- | :----------------------------------------: |
| CTP | 期货 |
| MINI | 期货 |
| FEMAS | 期货 |
| XTP | 国内股票、指数、基金、债券、期权、融资融券 |
| OES | 国内股票 |
| TORA | 国内股票 |
| IB | 外盘股票、期货、期权 |
| TAP | 外盘期货、期权 |
| FUTU | 国内股票、港股、美股 |
| TIGER | 国内股票、港股、美股 |
| ALPACA | 美股 |
| BITFINEX | 数字货币 |
| BITMEX | 数字货币 |
| BINANCE | 数字货币 |
| OKEX | 数字货币 |
| OKEXF | 数字货币 |
| HUOBI | 数字货币 |
| HUOBIF | 数字货币 |
| ONETOKEN | 数字货币 |
| RPC | RPC服务 |
| 接口 | 类型 |
| ------------ | :--------------------------------------------: |
| CTP | 期货、期货期权(实盘6.3.15) |
| CTP测试 | 期货、期货期权(测试6.3.16) |
| CTP Mini | 期货、期货期权(实盘1.4) |
| CTP Mini测试 | 期货、期货期权(测试1.2) |
| 飞马 | 期货 |
| CTP期权 | ETF期权(实盘20190802) |
| CTP期权测试 | ETF期权(实盘20190604) |
| 飞创期权 | ETF期权(实盘20200427) |
| 恒生UFT | 期货、ETF期权 |
| 恒生期权 | ETF期权 |
| 中泰XTP | A股、两融、ETF期权 |
| 华鑫奇点 | A股 |
| 宽睿 | A股、ETF期权 |
| 中亿汇达Comstar| 银行间市场 |
| 富途证券 | 港股、美股 |
| 盈透证券 | 海外全品种 |
| 老虎证券 | 外盘期货 |
| 易盛9.0外盘 | 外盘期货 |
| 直达期货 | 国内股票 |
| MetaTrader 5 | 外汇、CFD、股票、期货 |
| 币安 | 数字货币 |
| 币安永续合约 | 数字货币永续和期货 |
| 火币 | 数字货币 |
| 火币期货 | 数字货币期货 |
| 火币永续 | 数字货币永续 |
| OKEX | 数字货币 |
| OKEX期货 | 数字货币期货 |
| OKEX永续 | 数字货币永续 |
| OKEX期权 | 数字货币期权 |
| BitMEX | 数字货币期货、永续 |
| Bybit | 数字货币永续 |
| Gate.io合约 | 数字货币永续 |
| Deribit | 数字货币永续、期权 |
| Bitfinex | 数字货币 |
| Coinbase | 数字货币 |
| Bitstamp | 数字货币 |
| 1Token | 数字货币 |
| 融航 | 期货资管 |
| 鑫管家 | 期货资管 |
| RPC服务 | 核心交易路由 |



Expand Down Expand Up @@ -284,7 +304,7 @@ main_engine.add_gateway(OesGateway)
先从gateway上调用ToraGateway类;然后通过add_gateway()函数添加到main_engine上。
```
from vnpy.gateway.tota import ToraGateway
main_engine.add_gateway(OesGateway)
main_engine.add_gateway(ToraGateway)
```

&nbsp;
Expand Down
1 change: 1 addition & 0 deletions install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python -m pip install --upgrade pip setuptools
::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
python -m pip install https://pip.vnpy.com/colletion/ibapi-9.76.1.tar.gz

::Install Python Modules
python -m pip install -r requirements.txt
Expand Down
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ $python -m pip install numpy
# Install extra packages
$python -m pip install ta-lib
$python -m pip install psycopg2-binary
$python -m pip install https://pip.vnpy.com/colletion/ibapi-9.76.1.tar.gz

# Install Python Modules
$python -m pip install -r requirements.txt
Expand Down
1 change: 1 addition & 0 deletions install_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ $python -m pip install numpy
# Install extra packages
$python -m pip install ta-lib
$python -m pip install psycopg2-binary
$python -m pip install https://pip.vnpy.com/colletion/ibapi-9.76.1.tar.gz

# Install Python Modules
$python -m pip install -r requirements.txt
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pymysql
psycopg2
mongoengine
numpy
pandas==0.24.2
pandas
matplotlib
seaborn
futu-api
Expand All @@ -24,4 +24,5 @@ pyzmq
wmi
QScintilla==2.11.4
plotly
quickfix
quickfix
trading-calendars
22 changes: 1 addition & 21 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,23 +260,6 @@ def get_ext_modules():
language="cpp",
)

vnoes = Extension(
name="vnpy.api.oes.vnoes",
sources=gather_autocxxpy_generated_files(
"vnpy/api/oes/vnoes/generated_files/",
),
include_dirs=["vnpy/api/oes/vnoes/include",
"vnpy/api/oes/vnoes/include/oes"],
define_macros=[("BRIGAND_NO_BOOST_SUPPORT", "1")],
undef_macros=[],
library_dirs=["vnpy/api/oes/vnoes/libs"],
libraries=["oes_api"],
extra_compile_args=compiler_flags,
extra_link_args=extra_link_args,
runtime_library_dirs=runtime_library_dirs,
depends=[],
language="cpp",
)
if platform.system() == "Windows":
# use pre-built pyd for windows ( support python 3.7 only )
ext_modules = []
Expand All @@ -287,12 +270,9 @@ def get_ext_modules():
vnctptd, vnctpmd,
vnxtptd, vnxtpmd,
vnsgittd, vnsgitmd,
vnksgoldmd, vnksgoldtd,
vnoes
vnksgoldmd, vnksgoldtd
]

ext_modules = check_extension_build_flag(
ext_modules, "VNPY_BUILD_OES", vnoes)
ext_modules = check_extension_build_flag(
ext_modules, "VNPY_BUILD_CTP", vnctptd)
ext_modules = check_extension_build_flag(
Expand Down
3 changes: 0 additions & 3 deletions vnpy/api/tora/.gitignore

This file was deleted.

Binary file removed vnpy/api/tora/fastmdapi.dll
Binary file not shown.
Binary file removed vnpy/api/tora/fasttraderapi.dll
Binary file not shown.
18 changes: 0 additions & 18 deletions vnpy/api/tora/generate_tora.sh

This file was deleted.

Binary file removed vnpy/api/tora/libfastmdapi.so
Binary file not shown.
Binary file removed vnpy/api/tora/libfasttraderapi.so
Binary file not shown.
Binary file removed vnpy/api/tora/libmdapi.so
Binary file not shown.
Binary file removed vnpy/api/tora/libtraderapi.so
Binary file not shown.
Binary file removed vnpy/api/tora/mdapi.dll
Binary file not shown.
Binary file removed vnpy/api/tora/traderapi.dll
Binary file not shown.
Binary file removed vnpy/api/tora/vntora.pyd
Binary file not shown.
Loading

0 comments on commit b5f0cef

Please sign in to comment.