File tree 4 files changed +70
-5
lines changed
4 files changed +70
-5
lines changed Original file line number Diff line number Diff line change 1
- # vnpy_websocket
1
+ # vn.py框架的Websocket API客户端
2
+
3
+ <p align =" center " >
4
+ <img src =" https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png " />
5
+ </p >
6
+
7
+ <p align =" center " >
8
+ <img src ="https://img.shields.io/badge/version-1.0.0-blueviolet.svg"/>
9
+ <img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
10
+ <img src ="https://img.shields.io/badge/python-3.7-blue.svg" />
11
+ <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
12
+ </p >
13
+
14
+ ## 说明
15
+
16
+ 基于asyncio和aiohttp开发的协程异步Websocket API客户端,用于开发高性能的数字货币交易接口。
17
+
18
+ ## 安装
19
+
20
+ 安装需要基于2.2.0版本以上的[ VN Studio] ( https://www.vnpy.com ) 。
21
+
22
+ 直接使用pip命令:
23
+
24
+ ```
25
+ pip install vnpy_websocket
26
+ ```
27
+
28
+ 下载解压后在cmd中运行
29
+
30
+ ```
31
+ python setup.py install
32
+ ```
Original file line number Diff line number Diff line change
1
+ [metadata]
2
+ name = vnpy_websocket
3
+ version = 1.0.0
4
+ url = https://www.vnpy.com
5
+ license = MIT
6
+ author = Xiaoyou Chen
7
+ author_email = xiaoyou.chen@mail.vnpy.com
8
+ description = Websocket API client for vn.py quant trading framework.
9
+ long_description = file: README.md
10
+ long_description_content_type = text/markdown
11
+ keywords =
12
+ quant
13
+ quantitative
14
+ investment
15
+ trading
16
+ algotrading
17
+ classifiers =
18
+ Development Status :: 5 - Production/Stable
19
+ Operating System :: OS Independent
20
+ Programming Language :: Python :: 3
21
+ Programming Language :: Python :: 3.7
22
+ Programming Language :: Python :: 3.8
23
+ Programming Language :: Python :: 3.9
24
+ Programming Language :: Python :: 3.10
25
+ Topic :: Office/Business :: Financial :: Investment
26
+ Programming Language :: Python :: Implementation :: CPython
27
+ License :: OSI Approved :: MIT License
28
+ Natural Language :: Chinese (Simplified)
29
+
30
+ [options]
31
+ packages = find:
32
+ zip_safe = False
33
+ install_requires =
34
+ aiohttp
Original file line number Diff line number Diff line change
1
+ from setuptools import setup
2
+
3
+
4
+ setup ()
Original file line number Diff line number Diff line change @@ -146,15 +146,11 @@ async def _run(self):
146
146
"""
147
147
在事件循环中运行的主协程
148
148
"""
149
- print (1 )
150
- print (self ._host )
151
- print (self ._proxy )
152
149
self ._ws = await self ._session .ws_connect (
153
150
self ._host ,
154
151
proxy = self ._proxy ,
155
152
verify_ssl = False
156
153
)
157
- print (2 )
158
154
159
155
self .on_connected ()
160
156
You can’t perform that action at this time.
0 commit comments