Trade

Margin Ratio

GEThttps://openapi.longbridge.com/v1/risk/margin-ratio

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

Longbridge HK / SG accounts only

This API is available to Longbridge HK / SG accounts only.

This API is used to obtain the initial margin ratio, maintain the margin ratio and strengthen the margin ratio of stocks.

>_ CLI
longbridge margin-ratio TSLA.US

Request

Query parameters

NameTypeRequiredDescription
symbolstringRequiredStock symbol, using the format `ticker.region`, for example: `AAPL.US`

Response

Response properties

NameTypeRequiredDescription
im_factorstringOptionalInitial margin ratio
mm_factorstringOptionalMaintain the initial margin ratio
fm_factorstringOptionalForced close-out margin ratio
mcm_factorstringOptionalMaintenance-call-margin factor.
short_im_factorstringOptionalShort initial-margin factor.
short_mm_factorstringOptionalShort maintenance-margin factor.
short_fm_factorstringOptionalShort force-margin factor.
short_mcm_factorstringOptionalShort maintenance-call-margin factor.
short_sellablestringOptionalWhether the security is short-sellable.
short_sellable_v2booleanOptionalShort-sellable status (v2).

Response JSON example

{
  "code": 0,
  "data": {
    "im_factor": "0.1",
    "mm_factor": "0.1",
    "fm_factor": "0.1"
  }
}

Error code

See the Error Codes page for the full list of error codes.