Messages
{
"cmd": "ping"
}{
"cmd": "<string>",
"code": 123,
"message": "<string>",
"data": {
"timestamp": 123
}
}WebSocket 文档
心跳检测(Ping)
WSS
/
v1
/
realtime
套餐权限
| 套餐 | 可用 |
|---|---|
| 免费版 | ✅ |
| 基础版 | ✅ |
| 专业版 | ✅ |
| 全量套餐(A 股、港股、美股) | ✅ |
| 企业版 | ✅ |
ping 后,服务端返回 pong,其中 data.timestamp 为毫秒级 Unix 时间戳。
发送消息
{"cmd":"ping"}
返回消息
{"cmd":"pong","code":0,"message":"pong","data":{"timestamp":1768976158541}}
Messages
{
"cmd": "ping"
}{
"cmd": "<string>",
"code": 123,
"message": "<string>",
"data": {
"timestamp": 123
}
}api_key
type:httpApiKey
Ping 请求
type:object
发送 ping 检查连接状态。
Pong 响应
type:object
服务端对 ping 的响应。
