Skip to content
Longport Whale
Stock Margin Ratio

Upload Stock Margin Ratio

The "Batch import" button on the Stock Margin Ratio (long) page: first upload the file to obtain an s3_key, then submit (type is fixed to 0, meaning long/ordinary stock margin). It changes real margin ratios — call with caution.

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

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

s3_keystringrequired

S3 Key

sourcestring

Source

typenumberrequired

Type. The front end always sends 0.

Responses

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

No nested fields

Whale Docs