L-Star gateway for VeighNa quant trading framework.
Project description
VeighNa框架的利星资管系统交易接口
说明
基于利星期货资管系统的交易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 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()
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_lstar-6.3.15.0.tar.gz
(3.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_lstar-6.3.15.0.tar.gz.
File metadata
- Download URL: vnpy_lstar-6.3.15.0.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09ef28b3ade5ce1daafffb57c32751a96424b9f51c70e297c891a6e3b4d0c86b
|
|
| MD5 |
a80290d682f7b3918e0208538e367b90
|
|
| BLAKE2b-256 |
2c588090ba1702130afe34fbfd4303df8681b19c73e58e28b1866edbc6481270
|
File details
Details for the file vnpy_lstar-6.3.15.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: vnpy_lstar-6.3.15.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 4.2 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f511d405f084c6c8af7188ea3af62ad3d3eb63a815fc6cc0df506e4f57d8109a
|
|
| MD5 |
bf6015f8c6897b607e8ddf091503b916
|
|
| BLAKE2b-256 |
21a436d65e8bff622c4e76eee272dc16d073e222c2032e8f02ed0460971108d2
|