TORA gateway for vn.py quant trading framework.
Project description
VeighNa框架的华鑫奇点柜台接口
说明
基于华鑫奇点的C++ API开发,支持股票和期权交易。
股票API的版本为:
- Level1行情:v1.0.9_20250825
- 交易:v4.1.6_20251121
期权的API版本为:
- v1.3.4_20230908
API版本的详细信息,请参考奇点官网。
安装
安装环境推荐基于4.0.0版本以上的【VeighNa Studio】。
直接使用pip命令:
pip install vnpy_tora
或者下载源代码后,解压后在cmd中运行:
pip install .
如果需要以开发模式安装到当前Python环境,可以使用下述命令:
pip install -e . --no-build-isolation --config-settings=build-dir=.\vnpy_tora\api
使用
以脚本方式启动(script/run.py):
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy_tora import ToraOptionGateway, ToraStockGateway
def main():
"""主入口函数"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(ToraOptionGateway)
main_engine.add_gateway(ToraStockGateway)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vnpy_tora-2026.5.14.tar.gz
(2.6 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vnpy_tora-2026.5.14.tar.gz.
File metadata
- Download URL: vnpy_tora-2026.5.14.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4691b7ee3b18faae4464c53e2e2c19d2359ce247a44c4bbd10e99d69f969ddd9
|
|
| MD5 |
211f3e6ebf8afe613f852df570071a62
|
|
| BLAKE2b-256 |
b82e7293ab81fa816b6acf3a5ddf8e1757fe19ca68cb6e60a28b6fa0f2662fc4
|
File details
Details for the file vnpy_tora-2026.5.14-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: vnpy_tora-2026.5.14-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64a84abede3f66c74bc023389fe1fcaac9ab6751b8a3a0981eb829773233b56d
|
|
| MD5 |
b7791e5bacaf9b5b4f745bc1115fa82e
|
|
| BLAKE2b-256 |
1fca63a46e65483a863db8c79c41f402a7a3f151acfaae34c3f5337b5e91abf4
|