Account

Statement Download URL

GEThttps://openapi.longbridge.com/v1/statement/download

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

Get a presigned download URL for a specific statement file. The URL returns a JSON document containing the full statement content with all sections.

>_ CLI
longbridge statement export --file-key abc123xyz456 --section equity_holdings
longbridge statement export --file-key abc123xyz456 --section stock_trades -o trades.csv
longbridge statement export --file-key abc123xyz456 --all -o ./report/

Request

Query parameters

NameTypeRequiredDescription
file_keystringRequiredFile key obtained from the List Statements endpoint.

Response

Response properties

NameTypeRequiredDescription
urlstringRequiredTime-limited download URL for the statement file.

Response JSON example

{
  "url": "https://storage.example.com/statements/abc123xyz456.json?X-Amz-Signature=..."
}

Error code

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