Skip to content

Commit

Permalink
add websocket v5
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed May 14, 2021
1 parent b72d193 commit 95c95d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Okex Simulation Test API [https://www.okex.com/docs/en/#change-20200630](https:/

All interface methods are initialized the same as those provided by okex. See details [src/api](https://github.com/zhouaini528/okex-php/tree/master/src/Api)

Support [Websocket](https://github.com/zhouaini528/okex-php/blob/master/README.md#Websocket)
Support [Websocket v3 v5](https://github.com/zhouaini528/okex-php/blob/master/README.md#Websocket)

Support V3 V5 API

Expand Down Expand Up @@ -517,6 +517,8 @@ try {

### Websocket

[Websocket_v5 Click to view](https://github.com/zhouaini528/okex-php/blob/master/tests/websocket_v5)

Websocket has two services, server and client. The server is responsible for dealing with the new connection of the exchange, data receiving, authentication and login. Client is responsible for obtaining and processing data.

Server initialization must be started in Linux CLI mode.
Expand Down
4 changes: 3 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Okex 模拟交易API [https://www.okex.com/docs/zh/#change-20200630](https://www

所有接口方法的初始化都与okex提供的方法相同。更多细节 [src/api](https://github.com/zhouaini528/okex-php/tree/master/src/Api)

支持[Websocket](https://github.com/zhouaini528/okex-php/blob/master/README_CN.md#Websocket)
支持[Websocket v3 v5](https://github.com/zhouaini528/okex-php/blob/master/README_CN.md#Websocket)

支持V3 V5 API

Expand Down Expand Up @@ -515,6 +515,8 @@ try {

### Websocket

[websocket_v5 用例查看](https://github.com/zhouaini528/okex-php/blob/master/tests/websocket_v5)

Websocket有两个服务server和client,server负责处理交易所新连接、数据接收、认证登陆等等。client负责获取数据、处理数据。

Server端初始化,必须在Linux CLI模式下开启。[Websocket行情应用举例](https://github.com/zhouaini528/websocket-market)
Expand Down

0 comments on commit 95c95d6

Please sign in to comment.