Login

Trading client login authorization

Introduction

This interface is used to log in to the trading system when customizing the client, and to subscribe to quotes and place trading orders.

Interface

Email/Mobile phone number login

Login

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.login Guest Accessible

Header parameters
versionstringRequired

Version Number

Example: 0.0.1
companyIdstringRequired

Company ID, obtained through environment variables

Example: {{company}}
tracestringRequired

Random Tracking Code UUID

Example: {{mock_trace}}
langstringRequired

Language

Example: zh-CN
Body
typeintegerRequired

Registration and Login Methods: 1 Email, 2 Phone Number, 3 Customer Account

phoneAreastringOptional

Phone Area Code; Required field when type is 2: Phone Number

loginNamestringRequired

Account: Email/Phone Number

deviceintegerRequired

Login Device: 1=Mobile Web: H5, 2=PC Web: PC_Web, 3=System & Backend Registration: System, 4=Android Native App: Android, 5=iOS Native App: iOS, 6=HarmonyOS: HOS, 7=PC Windows Client: PC_Win, 8=PC Mac Client: PC_Mac, 9=Others

isThirdbooleanRequired

Is it a third party

verifyCodestringOptional

Verification code

sendTokenstringOptional

Verification code sending ticket

loginPwdstringOptional

Login password

bindThirdUserIdstringOptional

Bind third-party userId

thirdSourcestringOptional

Third-Party Sources: google, facebook, twitter…

googleCodestringOptional

Google Verification Code

Responses
200

Success

application/json
post
/login/customer.app.CustomerWebApiService.login
200

Success

Login with social account

Get Third-Party Login Configuration Information

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.config Guest Accessible

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
thirdSourcestringOptional

Third-Party Sources: google, facebook, twitter, telegram, apple, metamask

Responses
200

Success

application/json
post
/global/customer.app.CustomerThirdLoginService.config
200

Success

Google Third-party Login Verification

post

version=0.0.1 bizType=customer.app.CustomerThirdLoginService.googleVerify Accessible after login

Body
idTokenstringOptional
accessTokenstringOptional
Responses
200

Success

application/json
post
/h/com.cats.customer.api.app.CustomerThirdLoginService/googleVerify
200

Success

Last updated