Fundamental
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 historical business segment revenue trends across reporting periods.
longbridge business-segments AAPL.US --history
longbridge business-segments AAPL.US --history --report qf
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | Required | Security symbol, e.g. `AAPL.US` |
report | string | Optional | Report type: `qf` (quarterly) / `saf` (semi-annual) / `af` (annual) |
cate | string | Optional | Segment category filter |
Response
Response properties
| Name | Type | Required | Description |
|---|---|---|---|
historical | object[] | Optional | Historical period snapshots |
└ total | string | Optional | Total revenue for the period |
└ currency | string | Optional | Currency code |
└ date | string | Optional | Report period in YYYYMMDD format, e.g. `20260331` |
└ report | string | Optional | Report period code (e.g. `af` = annual) |
└ report_txt | string | Optional | Period label (e.g. `FY2024`, `Q1 2024`) |
└ fp_start | string | Optional | Fiscal period start date in `YYYY.MM.DD` format |
└ fp_end | string | Optional | Period end timestamp |
└ rpt_date | string | Optional | Report release date (YYYY-MM-DD) |
└ business | object[] | Optional | Business segment list |
└ ∟ name | string | Optional | Segment name |
└ ∟ percent | string | Optional | Revenue share percentage, e.g. `40.80` |
└ ∟ value | string | Optional | Absolute revenue value |
└ ∟ id | string | Optional | ID of the newly created alert |
└ ∟ yoy | string | Optional | Year-over-year growth rate |
└ regionals | array | Optional | Regional segment list (typically empty) |
└ bus_ids | array | Optional | Business-segment IDs. |
└ reg_ids | array | Optional | Regional-segment IDs. |
└ yoy | string | Optional | Year-over-year growth rate |
bus_ids | array | Optional | Business-segment IDs. |
Response JSON example
{
"code": 0,
"message": "success",
"data": {
"historical": [
{
"date": "20260331",
"total": "124300000000",
"currency": "USD",
"business": [
{
"name": "Americas",
"percent": "40.80",
"value": "31968000000"
},
{
"name": "Europe",
"percent": "23.64",
"value": "18521000000"
},
{
"name": "Greater China",
"percent": "20.72",
"value": "16233000000"
}
],
"regionals": []
}
]
}
}Error code
See the Error Codes page for the full list of error codes.