-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liaodong
authored and
liaodong
committed
Oct 9, 2023
1 parent
9d621b9
commit cefa441
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#### Websocket 行情推送 | ||
|
||
- 订阅地址 ws://{haoquote_host}/quote/ws | ||
- 用户可以侦听/订阅数个数据流 | ||
|
||
##### 订阅消息格式 | ||
``` | ||
{ | ||
"sub": | ||
[ | ||
"depth.usdjpy", | ||
"tradelog.usdjpy", | ||
"latest_price.usdjpy", | ||
"kline.m1.usdjpy", | ||
"market.24h.usdjpy" | ||
] | ||
} | ||
``` | ||
|
||
##### 取消订阅消息格式 | ||
``` | ||
{ | ||
"unsub": | ||
[ | ||
"tradelog.usdjpy", | ||
"market.24h.usdjpy" | ||
] | ||
} | ||
``` |