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 |
|---|---|---|---|
| Get Socket OTP (One time password) | socket-otp-api | /socket-token-api | 2 |
Get OTP (One Time Password) API
Our socket Token is one time password, you can use the Token to connect to quote or trade gateway. It will be expired after authing.
Last Update at 2022-04-28
API
| Info | |
|---|---|
| HTTP Method | GET |
| HTTP URL | /v1/socket/token |
Request Headers
| Field | Type | Required | description |
|---|---|---|---|
| Authorization | string | Yes | |
| Content-Type | string | Yes | Fixed Contents:"application/json; charset=utf-8" |
Request Parameters
Response
Response Body
| Field | Type | Description |
|---|---|---|
| code | int | error code, failed if not equal 0 |
| msg | string | error description |
| data | object | |
| ∟otp | string | token |
Response Example
{
"code": 0,
"message": "",
"data": {
"otp": "xxxxxxxx"
}
}
}