Trade
Authorization
Signed mode: every request is signed with your App Key/Secret. Header set:
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string · header | Required | The account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation. |
X-Api-Key | string · header | Required | Your App Key. |
X-Timestamp | string · header | Required | Request timestamp in seconds (Unix epoch). |
X-Api-Signature | string · header | Required | HMAC-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.
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | Required | Stock symbol, using the format `ticker.region`, for example: `AAPL.US` |
Response
Response properties
| Name | Type | Required | Description |
|---|---|---|---|
im_factor | string | Optional | Initial margin ratio |
mm_factor | string | Optional | Maintain the initial margin ratio |
fm_factor | string | Optional | Forced close-out margin ratio |
mcm_factor | string | Optional | Maintenance-call-margin factor. |
short_im_factor | string | Optional | Short initial-margin factor. |
short_mm_factor | string | Optional | Short maintenance-margin factor. |
short_fm_factor | string | Optional | Short force-margin factor. |
short_mcm_factor | string | Optional | Short maintenance-call-margin factor. |
short_sellable | string | Optional | Whether the security is short-sellable. |
short_sellable_v2 | boolean | Optional | Short-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.