Skip to content
Trading Password and Unlock

Check Trade Token

Checks whether the trade token carried by the request is still accepted by the server and returns its remaining lifetime. hasTradeToken() only reflects whether a token is held locally, so you can call this operation before opening a trading page to confirm that the server still accepts the token and avoid interrupting the Client after the order form is filled in.

Handle an invalid token by business code: 402000 means the token has expired and can be renewed with the refresh token; 402001 means the token has been invalidated, for example because the account signed in on another device, and the trade password must be verified again.

When you call this operation through WhaleCore requestService(), set requiresTradeToken to true.

GEThttps://api.lbkrs.com/v1/member/trade/check_token

Responses

HTTP 200The request succeeded. The response body contains the result of the “Check Trade Token” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
token_expiresinteger

Remaining lifetime of the trade token, in seconds. If little time remains, refresh the token first

HTTP 400The service rejected the request because a business rule or input validation failed. Review the business codes and correct the request before retrying.
codeintegerrequired

Business status code, 0 indicates success

messagestringrequired

Human-readable result or error message.

Whale Docs