File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed
Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1+ # 1.0.0版本
2+
3+ 1 . 将模块的图标文件信息,改为完整路径字符串
4+ 2 . 调整接口初始化时,接口名称的赋值方式
Original file line number Diff line number Diff line change 77<p align =" center " >
88 <img src ="https://img.shields.io/badge/version-1.0.0-blueviolet.svg"/>
99 <img src ="https://img.shields.io/badge/platform-linux|windows|mac-yellow.svg"/>
10- <img src ="https://img.shields.io/badge/python-3.7-blue.svg" />
10+ <img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
11+ <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
1112</p >
1213
1314## 说明
1617
1718## 安装
1819
19- 安装需要基于2.9 .0版本以上的[ VN Studio] ( https://www.vnpy.com ) 。
20+ 安装需要基于3.0 .0版本以上的[ VN Studio] ( https://www.vnpy.com ) 。
2021
2122直接使用pip命令:
2223
@@ -27,5 +28,5 @@ pip install vnpy_rpcservice
2728下载解压后在cmd中运行
2829
2930```
30- python setup.py install
31+ pip install -e .
3132```
Original file line number Diff line number Diff line change @@ -18,16 +18,18 @@ class RpcGateway(BaseGateway):
1818 vn.py用于连接rpc服务的接口。
1919 """
2020
21+ default_name : str = "RPC"
22+
2123 default_setting : Dict [str , str ] = {
2224 "主动请求地址" : "tcp://127.0.0.1:2014" ,
2325 "推送订阅地址" : "tcp://127.0.0.1:4102"
2426 }
2527
2628 exchanges : List [Exchange ] = list (Exchange )
2729
28- def __init__ (self , event_engine ) -> None :
30+ def __init__ (self , event_engine , gateway_name : str ) -> None :
2931 """构造函数"""
30- super ().__init__ (event_engine , "RPC" )
32+ super ().__init__ (event_engine , gateway_name )
3133
3234 self .symbol_gateway_map : Dict [str , str ] = {}
3335
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ class RpcServiceApp(BaseApp):
1313 display_name = "RPC服务"
1414 engine_class = RpcEngine
1515 widget_name = "RpcManager"
16- icon_name = " rpc.ico"
16+ icon_name = str ( app_path . joinpath ( "ui" , " rpc.ico"))
You can’t perform that action at this time.
0 commit comments