diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-vnpy-tap.spec | 273 | ||||
| -rw-r--r-- | sources | 1 | 
3 files changed, 275 insertions, 0 deletions
| @@ -0,0 +1 @@ +/vnpy_tap-9.3.9.tar.gz diff --git a/python-vnpy-tap.spec b/python-vnpy-tap.spec new file mode 100644 index 0000000..5f56bac --- /dev/null +++ b/python-vnpy-tap.spec @@ -0,0 +1,273 @@ +%global _empty_manifest_terminate_build 0 +Name:		python-vnpy-tap +Version:	9.3.9 +Release:	1 +Summary:	TAP gateway for VeighNa quant trading framework. +License:	MIT +URL:		https://www.vnpy.com +Source0:	https://mirrors.aliyun.com/pypi/web/packages/0f/bd/80c18ff9e4d00bdad57100a0e8fd6bfbf621b15d29288dd4450a375aeed4/vnpy_tap-9.3.9.tar.gz + +Requires:	python3-importlib-metadata + +%description +# VeighNa框架的易盛外盘交易接口
 +
 +<p align="center">
 +  <img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/>
 +</p>
 +
 +<p align="center">
 +    <img src ="https://img.shields.io/badge/version-9.3.9-blueviolet.svg"/>
 +    <img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/>
 +    <img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
 +    <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
 +</p>
 +
 +## 说明
 +
 +基于易盛的北斗星交易API的9.0接口封装开发的Windows的接口,适用于香港、新加坡以及其他境外交易所行情/交易。
 +
 +## 安装
 +
 +安装需要基于3.3.0版本以上的[VeighNa Studio](https://www.vnpy.com)。
 +
 +直接使用pip命令:
 +
 +```
 +pip install vnpy_tap
 +```
 +
 +
 +或者下载源代码后,解压后在cmd中运行:
 +
 +```
 +pip install .
 +```
 +
 +使用源代码安装时需要进行C++编译,因此在执行上述命令之前请确保已经安装了【Visual Studio(Windows)】或者【GCC(Linux)】编译器。
 +## 使用
 +
 +以脚本方式启动(script/run.py):
 +
 +```
 +from vnpy.event import EventEngine
 +from vnpy.trader.engine import MainEngine
 +from vnpy.trader.ui import MainWindow, create_qapp
 +
 +from vnpy_tap import TapGateway
 +
 +
 +def main():
 +    """主入口函数"""
 +    qapp = create_qapp()
 +
 +    event_engine = EventEngine()
 +    main_engine = MainEngine(event_engine)
 +    main_engine.add_gateway(TapGateway)
 +    
 +    main_window = MainWindow(main_engine, event_engine)
 +    main_window.showMaximized()
 +
 +    qapp.exec()
 +
 +
 +if __name__ == "__main__":
 +    main()
 +```
 +
 +
 + + +%package -n python3-vnpy-tap +Summary:	TAP gateway for VeighNa quant trading framework. +Provides:	python-vnpy-tap +BuildRequires:	python3-devel +BuildRequires:	python3-setuptools +BuildRequires:	python3-pip +BuildRequires:	python3-cffi +BuildRequires:	gcc +BuildRequires:	gdb +%description -n python3-vnpy-tap +# VeighNa框架的易盛外盘交易接口
 +
 +<p align="center">
 +  <img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/>
 +</p>
 +
 +<p align="center">
 +    <img src ="https://img.shields.io/badge/version-9.3.9-blueviolet.svg"/>
 +    <img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/>
 +    <img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
 +    <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
 +</p>
 +
 +## 说明
 +
 +基于易盛的北斗星交易API的9.0接口封装开发的Windows的接口,适用于香港、新加坡以及其他境外交易所行情/交易。
 +
 +## 安装
 +
 +安装需要基于3.3.0版本以上的[VeighNa Studio](https://www.vnpy.com)。
 +
 +直接使用pip命令:
 +
 +```
 +pip install vnpy_tap
 +```
 +
 +
 +或者下载源代码后,解压后在cmd中运行:
 +
 +```
 +pip install .
 +```
 +
 +使用源代码安装时需要进行C++编译,因此在执行上述命令之前请确保已经安装了【Visual Studio(Windows)】或者【GCC(Linux)】编译器。
 +## 使用
 +
 +以脚本方式启动(script/run.py):
 +
 +```
 +from vnpy.event import EventEngine
 +from vnpy.trader.engine import MainEngine
 +from vnpy.trader.ui import MainWindow, create_qapp
 +
 +from vnpy_tap import TapGateway
 +
 +
 +def main():
 +    """主入口函数"""
 +    qapp = create_qapp()
 +
 +    event_engine = EventEngine()
 +    main_engine = MainEngine(event_engine)
 +    main_engine.add_gateway(TapGateway)
 +    
 +    main_window = MainWindow(main_engine, event_engine)
 +    main_window.showMaximized()
 +
 +    qapp.exec()
 +
 +
 +if __name__ == "__main__":
 +    main()
 +```
 +
 +
 + + +%package help +Summary:	Development documents and examples for vnpy-tap +Provides:	python3-vnpy-tap-doc +%description help +# VeighNa框架的易盛外盘交易接口
 +
 +<p align="center">
 +  <img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/>
 +</p>
 +
 +<p align="center">
 +    <img src ="https://img.shields.io/badge/version-9.3.9-blueviolet.svg"/>
 +    <img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/>
 +    <img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
 +    <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
 +</p>
 +
 +## 说明
 +
 +基于易盛的北斗星交易API的9.0接口封装开发的Windows的接口,适用于香港、新加坡以及其他境外交易所行情/交易。
 +
 +## 安装
 +
 +安装需要基于3.3.0版本以上的[VeighNa Studio](https://www.vnpy.com)。
 +
 +直接使用pip命令:
 +
 +```
 +pip install vnpy_tap
 +```
 +
 +
 +或者下载源代码后,解压后在cmd中运行:
 +
 +```
 +pip install .
 +```
 +
 +使用源代码安装时需要进行C++编译,因此在执行上述命令之前请确保已经安装了【Visual Studio(Windows)】或者【GCC(Linux)】编译器。
 +## 使用
 +
 +以脚本方式启动(script/run.py):
 +
 +```
 +from vnpy.event import EventEngine
 +from vnpy.trader.engine import MainEngine
 +from vnpy.trader.ui import MainWindow, create_qapp
 +
 +from vnpy_tap import TapGateway
 +
 +
 +def main():
 +    """主入口函数"""
 +    qapp = create_qapp()
 +
 +    event_engine = EventEngine()
 +    main_engine = MainEngine(event_engine)
 +    main_engine.add_gateway(TapGateway)
 +    
 +    main_window = MainWindow(main_engine, event_engine)
 +    main_window.showMaximized()
 +
 +    qapp.exec()
 +
 +
 +if __name__ == "__main__":
 +    main()
 +```
 +
 +
 + + +%prep +%autosetup -n vnpy_tap-9.3.9 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then +	find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then +	find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then +	find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then +	find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then +	find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-vnpy-tap -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 9.3.9-1 +- Package Spec generated @@ -0,0 +1 @@ +5f26e68b504d031e6da0869f68b6c724  vnpy_tap-9.3.9.tar.gz | 
