CTP Mini gateway for vn.py quant trading framework.
Project description
vn.py框架的CTP Mini底层接口
说明
基于CTP Mini的1.5.6接口封装开发。
安装
安装需要基于2.2.0版本以上的VN Studio。
直接使用pip命令:
pip install vnpy_mini
或者下载解压后在cmd中运行:
python setup.py install
使用
以脚本方式启动(script/run.py):
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy_mini import MiniGateway
def main():
"""主入口函数"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(MiniGateway)
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_mini-1.5.6.4.tar.gz
(4.1 MB
view details)
Built Distributions
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_mini-1.5.6.4.tar.gz.
File metadata
- Download URL: vnpy_mini-1.5.6.4.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c948b2b99a795660520ded77085c54d182cd70b19f8f7132f9ef8a687d9e4f2
|
|
| MD5 |
3b734145280c2c028d640525dbbc15c4
|
|
| BLAKE2b-256 |
b3d63a4b7a5ca7d59f3df5a42d0ad48af8d76c765d73b1d8f2253345545e7c5b
|
File details
Details for the file vnpy_mini-1.5.6.4-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: vnpy_mini-1.5.6.4-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34bf986b3f1f896827d0577c395302b33e03cae7a80953aadc2d169957667083
|
|
| MD5 |
f258b404f16056d09e5cc28d20c57852
|
|
| BLAKE2b-256 |
fa61f0cbafe1b7bb4be34f442bb59f653289141f8985e2ac0d8e9697cc552f13
|
File details
Details for the file vnpy_mini-1.5.6.4-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: vnpy_mini-1.5.6.4-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c5ab4667b2c65dc39827c7277f24d2faab3bcb9c95550d2cddcd532a381bd6b
|
|
| MD5 |
925ad82e6f41311733a66a19ec96a95b
|
|
| BLAKE2b-256 |
2470c2a26ee919aa038668481e86b55cdaf15ca9bf53e2a9ab1630ec9c224e83
|