- Notifications
You must be signed in to change notification settings - Fork3
vnpy/vnpy_lstar
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
基于利星期货资管系统的交易API封装开发,行情接口使用CTP。
API版本号:
- 交易API:利星资管 v6.3.15
- 行情API:CTP v6.7.2
安装环境推荐基于3.9.2版本以上的【VeighNa Studio】。
直接使用pip命令:
pip install vnpy_lstar
或者下载源代码后,解压后在cmd中运行:
pip install .
使用源代码安装时需要进行C++编译,因此在执行上述命令之前请确保已经安装了【Visual Studio(Windows)】编译器。
以脚本方式启动(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()