mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
36123021bf
* convert to zh-HK * support en * corrent some words * use HTTP API instead of Rest Api * correct some translation error * fix english writing standard
1.3 KiB
1.3 KiB
title, id, slug, sidebar_position
| title | id | slug | sidebar_position |
|---|---|---|---|
| 獲取長連接 OTP | socket-otp-api | /socket-token-api | 2 |
獲取長連接 OTP(One Time Password)
獲取長連接使用的 Token(One time password),長連接的 Token 可以用來連接行情和交易的長連接網關,是一次性的,使用過後就會作廢。
最後更新於 2022-04-28
請求
| 基本信息 | |
|---|---|
| HTTP URL | /v1/socket/token |
| HTTP Method | GET |
請求頭
| 名稱 | 類型 | 必須 | 描述 |
|---|---|---|---|
| Authorization | string | 是 | |
| Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
請求參數
響應
響應體
| 名稱 | 類型 | 描述 |
|---|---|---|
| code | int | 錯誤碼,非 0 表示失敗 |
| msg | string | 錯誤描述 |
| data | object | |
| ∟otp | string | 獲取到的 token |
響應體示例
{
"code": 0,
"message": "",
"data": {
"otp": "xxxxxxxx"
}
}
}