{"id":16939212,"url":"https://github.com/vnpy/vnpy_sgit","last_synced_at":"2025-04-13T15:53:58.642Z","repository":{"id":42979574,"uuid":"411481367","full_name":"vnpy/vnpy_sgit","owner":"vnpy","description":"VeighNa框架的飞鼠交易接口","archived":false,"fork":false,"pushed_at":"2022-08-01T07:59:05.000Z","size":1680,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T06:44:59.518Z","etag":null,"topics":["python","sgit","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}},"created_at":"2021-09-29T00:41:30.000Z","updated_at":"2025-01-02T06:38:33.000Z","dependencies_parsed_at":"2022-09-25T18:32:58.994Z","dependency_job_id":null,"html_url":"https://github.com/vnpy/vnpy_sgit","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_sgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_sgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_sgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_sgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vnpy","download_url":"https://codeload.github.com/vnpy/vnpy_sgit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741147,"owners_count":21154249,"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","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":["python","sgit","veighna","vnpy"],"created_at":"2024-10-13T21:04:01.974Z","updated_at":"2025-04-13T15:53:58.621Z","avatar_url":"https://github.com/vnpy.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VeighNa框架的飞鼠交易接口\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-4.8.4-blueviolet.svg\"/\u003e\n    \u003cimg src =\"https://img.shields.io/badge/platform-linux-yellow.svg\"/\u003e\n    \u003cimg src =\"https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-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基于飞鼠柜台的4.8版本API封装开发的交易接口，只支持Linux系统。\n\n## 安装\n\n安装环境推荐基于3.3.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。\n\n直接使用pip命令：\n\n```\npip install vnpy_sgit\n```\n\n\n或者下载源代码后，解压后在cmd中运行：\n\n```\npip install .\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_sgit import SgitGateway\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(SgitGateway)\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\n## 注意\n\n连接前请先将运行的python下lib/site-packages文件夹下vnpy_sgit/api中的rsa.pk文件放到运行目录。并修改libcrypto.so为libcrypto.so.10，libssl.so为libssl.so.10。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnpy%2Fvnpy_sgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvnpy%2Fvnpy_sgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnpy%2Fvnpy_sgit/lists"}