News & Contents

Add Securities to Sharelist

POSThttps://openapi.longbridge.com/v1/sharelists/{id}/items

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=.

Add one or more securities to a sharelist.

>_ CLI
longbridge sharelist add 123 TSLA.US AAPL.US

Request

Path parameters

NameTypeRequiredDescription
idintegerRequiredSharelist ID

Request body

NameTypeRequiredDescription
symbolsstringRequiredComma-separated security symbols, e.g. `AAPL.US,700.HK` (NOT a JSON array)

Response

Response JSON example

{
  "code": 0,
  "message": "success"
}

Error code

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