Skip to main content

VeighNa框架的利星资管系统交易接口

说明

基于利星期货资管系统的交易API封装开发,行情接口使用CTP。

API版本号:

  1. 交易API:利星资管 v6.3.15
  2. 行情API:CTP v6.7.7

安装

安装环境推荐基于4.0.0版本以上的【VeighNa Studio】。

直接使用pip命令:

pip install vnpy_lstar

或者下载源代码后,解压后在cmd中运行:

pip install .

使用源代码安装时需要进行C++编译,因此在执行上述命令之前请确保已经安装了【Visual Studio(Windows)】编译器。

如果需要以开发模式安装到当前Python环境,可以使用下述命令:

pip install -e . --no-build-isolation --config-settings=build-dir=.\vnpy_lstar\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_lstar import LstarGateway


def main():
    """主入口函数"""
    qapp = create_qapp()

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    main_engine.add_gateway(LstarGateway)
    
    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()


if __name__ == "__main__":
    main()

Release files for vnpy_lstar 6.3.15.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vnpy_lstar 6.3.15.1
File Size Uploaded
vnpy_lstar-6.3.15.1.tar.gz 3.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for vnpy_lstar 6.3.15.1
File Interpreter ABI Platform
vnpy_lstar-6.3.15.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details

Total release size: 7.3 MB

Release files / vnpy_lstar-6.3.15.1.tar.gz

Download URL vnpy_lstar-6.3.15.1.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
5d29e5d266c3cdc3eae4e87e3ba52c4c09c50eb8f84d622f4b31099b3bfe3cb0
BLAKE2b-256 checksum
How to use checksums
384bc970f0f05a12e32e610554aae996d1af7dbdea600bb89acdac6778c24f28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.11

Release files / vnpy_lstar-6.3.15.1-cp313-cp313-win_amd64.whl

Download URL vnpy_lstar-6.3.15.1-cp313-cp313-win_amd64.whl
Size 3.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
194bcce77b62f38944ccf566a823bb8a537324dbeebd1cd1699b63e6c3e65b04
BLAKE2b-256 checksum
How to use checksums
27a55e04f32c09c06154e133788afe73f2e0f6eca1cc6aed1ac5f5899b265a19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.11

Release history Release notifications | RSS feed

This release

6.3.15.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page