Account
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=. |
Get a presigned download URL for a specific statement file. The URL returns a JSON document containing the full statement content with all sections.
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
| Name | Type | Required | Description |
|---|---|---|---|
file_key | string | Required | File key obtained from the List Statements endpoint. |
Response
Response properties
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Required | Time-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.