Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liaodong authored and liaodong committed Oct 9, 2023
1 parent 9d621b9 commit cefa441
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
6 changes: 3 additions & 3 deletions document/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
* [资产查询](assets.md)
<!-- * [资产详情](x.md) -->

* [订单](order.md)
* [订单](order_create.md)
* [新订单](order_create.md)
* [取消订单](order_cancel.md)
* [历史订单](order_history.md)
* [未成交订单](order_unfinshed.md)

* [行情](quote.md)
* [行情](quote_depth.md)
* [委托深度](quote_depth.md)
* [最新价格](quote_latest_price.md)
* [成交记录](quote_trade_record.md)
* [K线数据](quote_kline.md)

* [websocket](websocket.md)
* [websocket行情推送](websocket.md)

29 changes: 29 additions & 0 deletions document/websocket.md
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"
]
}
```

0 comments on commit cefa441

Please sign in to comment.