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 的回應。
