VeighNa框架的CTP Mini底层接口
说明
基于CTP Mini行情1.7.5、交易1.7.7接口封装开发。
安装
安装环境推荐基于4.0.0版本以上的【VeighNa Studio】。
直接使用pip命令:
pip install vnpy_mini
或者下载源代码后,解压后在cmd中运行:
pip install .
使用源代码安装时需要进行C++编译,因此在执行上述命令之前请确保已经安装了【Visual Studio(Windows)】或者【GCC(Linux)】编译器。
如果需要以开发模式安装到当前Python环境,可以使用下述命令:
pip install -e . --no-build-isolation --config-settings=build-dir=build
使用
以脚本方式启动(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()
Metadata
Release files for vnpy_mini 1.7.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vnpy_mini-1.7.7.0.tar.gz | 3.3 MB | Without provenance | Details for vnpy_mini-1.7.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vnpy_mini-1.7.7.0-cp310-cp310-win_amd64.whl | CPython 3.10 | CPython 3.10 | Windows x86-64 | Details for vnpy_mini-1.7.7.0-cp310-cp310-win_amd64.whl |
Total release size: 5.5 MB
Release files / vnpy_mini-1.7.7.0.tar.gz
| Download URL | vnpy_mini-1.7.7.0.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ae44ab593e2bfd7ca5a1a65844d72b1e1aaddc80718ffd3e889f277534b2aa5
|
|
BLAKE2b-256 checksum How to use checksums |
793bbbf8e31bb46f09535f5be2c8f577fdc11123e9ba8112b6a673891b0a00e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.3
|
Release files / vnpy_mini-1.7.7.0-cp310-cp310-win_amd64.whl
| Download URL | vnpy_mini-1.7.7.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0d842485f69bc7056620651dc0cf790508db59c5f65e76163365cf5f930ac9af
|
|
BLAKE2b-256 checksum How to use checksums |
df68aac4708e57a11b09ff92b7e7bc3b23cf18b9da4b58922b3c273c82a406e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.3
|
Security for vnpy_mini 1.7.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.