VeighNa框架的恒生云UF2.0证券测试交易接口
说明
基于恒生T2SDK接口封装开发的恒生云UF2.0证券测试环境交易接口,行情数据由TuShare数据服务提供。
安装
安装需要基于3.3.0版本的【VeighNa】和Python3.7环境。
直接使用pip命令:
pip install vnpy_uf
或者下载解压后在cmd中运行:
python setup.py install
使用
以脚本方式启动:
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy_uf import UfGateway
def main():
"""主入口函数"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(UfGateway)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
连接
请注意,连接前请在【全局配置】处配置好TuShare数据服务。
Release files for vnpy-uf 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vnpy_uf-1.0.1.tar.gz | 86.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vnpy_uf-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.5 MB
Release files / vnpy_uf-1.0.1.tar.gz
| Download URL | vnpy_uf-1.0.1.tar.gz |
|---|---|
| Size | 86.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59007c310a01cd2ba556b6c10b2660be96199b9f9cefb3cc3881e3b8e2443aa1
|
|
BLAKE2b-256 checksum How to use checksums |
90ded8cf9908657d78108ac73e52e12b163d411f9df898ab9f055ae980002724
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / vnpy_uf-1.0.1-py3-none-any.whl
| Download URL | vnpy_uf-1.0.1-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b893d1f238e425b9b20efd2fdc92d1a08aac322145ea1925123fa9e2d2e8cdc
|
|
BLAKE2b-256 checksum How to use checksums |
f7e6c8c3b379009380486e95b50d45a4ca0933a708fc1e46933bc88f4999366b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|