{"id":16939151,"url":"https://github.com/vnpy/vnpy_mini","last_synced_at":"2025-08-22T07:40:48.129Z","repository":{"id":43013158,"uuid":"384298498","full_name":"vnpy/vnpy_mini","owner":"vnpy","description":"VeighNa框架的CTP MINI交易接口","archived":false,"fork":false,"pushed_at":"2025-06-19T08:46:56.000Z","size":11236,"stargazers_count":12,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T00:27:06.220Z","etag":null,"topics":["ctp","python","veighna","vnpy"],"latest_commit_sha":null,"homepage":"https://www.vnpy.com","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vnpy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-07-09T02:22:33.000Z","updated_at":"2025-06-17T04:11:13.000Z","dependencies_parsed_at":"2022-09-23T13:51:17.625Z","dependency_job_id":"790b57be-b39a-4f40-b880-2dd17bfc9b56","html_url":"https://github.com/vnpy/vnpy_mini","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/vnpy/vnpy_mini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vnpy","download_url":"https://codeload.github.com/vnpy/vnpy_mini/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_mini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271605964,"owners_count":24788968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ctp","python","veighna","vnpy"],"created_at":"2024-10-13T21:03:48.783Z","updated_at":"2025-08-22T07:40:48.089Z","avatar_url":"https://github.com/vnpy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VeighNa框架的CTP Mini底层接口\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src =\"https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src =\"https://img.shields.io/badge/version-1.6.3.2-blueviolet.svg\"/\u003e\n    \u003cimg src =\"https://img.shields.io/badge/platform-windows|linux-yellow.svg\"/\u003e\n    \u003cimg src =\"https://img.shields.io/badge/python-3.10|3.11|3.12|3.13-blue.svg\" /\u003e\n    \u003cimg src =\"https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange\"/\u003e\n\u003c/p\u003e\n\n## 说明\n\n基于CTP Mini的1.6.3接口封装开发。\n\n## 安装\n\n安装环境推荐基于4.0.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。\n\n直接使用pip命令：\n\n```\npip install vnpy_mini\n```\n\n\n或者下载源代码后，解压后在cmd中运行：\n\n```\npip install .\n```\n\n使用源代码安装时需要进行C++编译，因此在执行上述命令之前请确保已经安装了【Visual Studio（Windows）】或者【GCC（Linux）】编译器。\n\n如果需要以**开发模式**安装到当前Python环境，可以使用下述命令：\n\n```\npip install -e . --no-build-isolation --config-settings=build-dir=.\\vnpy_mini\\api\n```\n\n\n## 使用\n\n以脚本方式启动（script/run.py）：\n\n```\nfrom vnpy.event import EventEngine\nfrom vnpy.trader.engine import MainEngine\nfrom vnpy.trader.ui import MainWindow, create_qapp\n\nfrom vnpy_mini import MiniGateway\n\n\ndef main():\n    \"\"\"主入口函数\"\"\"\n    qapp = create_qapp()\n\n    event_engine = EventEngine()\n    main_engine = MainEngine(event_engine)\n    main_engine.add_gateway(MiniGateway)\n    \n    main_window = MainWindow(main_engine, event_engine)\n    main_window.showMaximized()\n\n    qapp.exec()\n\n\nif __name__ == \"__main__\":\n    main()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnpy%2Fvnpy_mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvnpy%2Fvnpy_mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnpy%2Fvnpy_mini/lists"}