Skip to content
Longport Whale
Client Stock Margin

Reset Account Stock Margin Ratio

The "Reset" button on a row of the Client Stock Margin list; the Client Short Margin page shares the same endpoint (only position_side differs — 0 for long, 1 for short). It causes a real margin-ratio change.

POSThttps://b-api.longbridge.xyz/risk/v1/account_stock_margin_ratio/reset

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

counter_idstringrequired

Counter ID. Taken from the list row's record.counter_id, identifying the counter to which this margin-ratio configuration belongs.

im_factornumberrequired

Initial Margin Factor. Taken from the list row's record.im_factor; the front end divides transferNum by 100 to convert it to a decimal (e.g. list shows 150 -> submits 1.5) before submitting, representing a reset to that value.

mm_factornumberrequired

Maintenance Margin Factor. Taken from the list row's record.mm_factor; like im_factor, it is divided by 100 before submission.

fm_factornumberrequired

Forced-liquidation Margin Factor. Taken from the row record's fm_factor; like im_factor, it is divided by 100 before submission.

mcm_factornumberrequired

Margin Call Factor. Taken from the list row record.mcm_factor; submitted after the same /100 conversion as im_factor.

aaidstringrequired

Asset Account ID. Taken from the list row's record.aaid_val.

member_idstringrequired

Member ID. Taken from the list row's record.member_id.

exprie_atnumberrequired

Expire At (unix seconds). The front end always sends the current second-level timestamp Math.floor(Date.now/1000) — i.e. it uses "now" as the config's expiry time, thereby resetting/voiding the old config.

position_sidenumberrequired

Position Side. Enum: 0 = long (User, this page), 1 = short (the short-stock page).

remarkstring

Remark. The front end always passes an empty string ''.

audit_frontend_resourceobject

Frontend Audit Log Metadata. Not a business field; used for back-end audit-log display. The front end always sends { delete: true, $action: 'delete', $behavior: multilingual text for voiding client stock margin (tt('audit_invaild_client_stock_margin')) }.

Responses

HTTP 200No confirmable field definitions are available for the response yet.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs