Skip to content
Temporary Adjustment

Temporary Adjustment

This interface is used to perform temporary asset adjustments for a specified securities account, supporting both cash and stock asset types. By providing the security type security_type along with the corresponding cash adjustment details cash_adjusts or stock adjustment details stock_adjusts, it temporarily increases or decreases assets for the account, with an automatic expiration time configurable via expire_time.

POSThttps://b-api.longbridge.xyz/v2/whaleapi/asset/temp_adjust

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Request body application/json

security_typestringrequired

security_type

op_userstringrequired

op_user

cash_adjustsobjectrequired

cash_adjusts

Child attributes
currencystringrequired

currency

directionstringrequired

CREDIT、DEBIT. CREDIT、DEBIT

incurred_amountstringrequired

金额

biz_codestringrequired

biz_code

remarkstringrequired

remark

expire_timeintegerrequired

expire_time

account_nostringrequired

account_no

stock_adjustsobjectrequired

stock_adjusts

Child attributes
Symbolstringrequired

Symbol

directionstringrequired

CREDIT、DEBIT. CREDIT、DEBIT

incurred_quantitystringrequired

incurred_quantity

biz_codestringrequired

biz_code

remarkstringrequired

remark

currencystringrequired

currency

cost_pricestringrequired

cost_price

expire_timeintegerrequired

expire_time

position_sidestringrequired

LONG, SHORT. LONG, SHORT

account_nostringrequired

account_no

Responses

HTTP 200Fields are taken from the real responses definition for this operation in the published Whale OpenAPI spec (whale-openapi/Whale-openapi.json).
Standard response envelopecodemessagedata
dataobjectdata structure
adjust_nostringrequired

adjust_no

codestringrequired

code

messagestringrequired

message

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs