Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

vnpy/vnpy_lstar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

说明

基于利星期货资管系统的交易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 EventEnginefrom vnpy.trader.engine import MainEnginefrom vnpy.trader.ui import MainWindow, create_qappfrom vnpy_lstar import LstarGatewaydef 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()

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp