Skip to main content

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 MethodGET
HTTP URL/v1/socket/token

Request Headers

FieldTypeRequireddescription
AuthorizationstringYes
Content-TypestringYesFixed Contents:"application/json; charset=utf-8"

Request Parameters

Response

Response Body

FieldTypeDescription
codeinterror code, failed if not equal 0
msgstringerror description
dataobject
∟otpstringtoken

Response Example

{
"code": 0,
"message": "",
"data": {
"otp": "xxxxxxxx"
}
}
}