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.3.21.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.3.21.tar.gz.
File metadata
- Download URL: vnpy_tora-2026.3.21.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 |
9bc6a3f1a231fb28ce967dfa19f623c9288442c7aee4c55922bc5de413151c62
|
|
| MD5 |
e437e1a3cd889fd255da607bff815e19
|
|
| BLAKE2b-256 |
20811db43e5d4ab2983565d7b723f11d62f4f4e98fcd854e7636524c8d0c5215
|
File details
Details for the file vnpy_tora-2026.3.21-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: vnpy_tora-2026.3.21-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 |
8aa86462458021b3bf27772725911b74c70a5d096090ce3a631f5eaa8378c30b
|
|
| MD5 |
b5d578dc2933fbeef053c52b6f2cd7f7
|
|
| BLAKE2b-256 |
3eb701669d5ff536d82475dc2569ecdc1316562f3274209399ca4af950361cc3
|