Skip to main content

TORA gateway for vn.py quant trading framework.

Project description

VeighNa框架的华鑫奇点柜台接口

说明

基于华鑫奇点的C++ API开发,支持股票和期权交易。

股票API的版本为:

  • Level1行情:v1.0.5_20230210
  • 交易:v4.0.8_20230627

期权的API版本为:

  • v1.3.3_20220908

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


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-2025.4.16.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vnpy_tora-2025.4.16-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

File details

Details for the file vnpy_tora-2025.4.16.tar.gz.

File metadata

  • Download URL: vnpy_tora-2025.4.16.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for vnpy_tora-2025.4.16.tar.gz
Algorithm Hash digest
SHA256 d76d16a547a133f3b39815225e03926a521afe6c6329f52a24bafdfd2e4c2a89
MD5 ab0ff4b9b95b3c54b2d5e74bf5d8a3fe
BLAKE2b-256 5be95cc72861c048919c4abad590a6263c106f2237dc136729bb3f343010cf9a

See more details on using hashes here.

File details

Details for the file vnpy_tora-2025.4.16-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for vnpy_tora-2025.4.16-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 108eec234311dd48a5489872de10bfa3cf02c4b6d413475020805581a00942d0
MD5 9736b8f2c118893c4abec376839d5df2
BLAKE2b-256 a9c03e7687680303053440085357730c1e876c781cf1f1eed91f6a581789495a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page