Profit Analysis Detail
Get detailed P&L for a specific security including transaction flow and cost breakdown.
SDK Links
Parameters
SDK method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | YES | Security symbol, e.g. AAPL.US |
| start | string | NO | Start date, YYYY-MM-DD |
| end | string | NO | End date, YYYY-MM-DD |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"name": "Apple",
"currency": "USD",
"profit": "100.00",
"start": "1763769600",
"end": "1778724973",
"start_date": "2025-11-22",
"end_date": "2026-05-14",
"default_tag": 0,
"updated_at": "1778724973",
"updated_date": "2026-05-14",
"underlying_details": {
"profit": "100.00",
"holding_value": "1790.16",
"holding_value_at_beginning": null,
"holding_value_at_ending": "1790.16",
"long_holding_value": "1790.16",
"short_holding_value": "0.00",
"cumulative_credited_amount": "0.00",
"cumulative_debited_amount": "0.00",
"cumulative_fee_amount": "0.00",
"credited_details": [],
"debited_details": [],
"fee_details": []
},
"derivative_pnl_details": {
"profit": "0.00",
"holding_value": "0.00",
"holding_value_at_beginning": null,
"holding_value_at_ending": "0.00",
"long_holding_value": "0.00",
"short_holding_value": "0.00",
"cumulative_credited_amount": "0.00",
"cumulative_debited_amount": "0.00",
"cumulative_fee_amount": "0.00",
"credited_details": [],
"debited_details": [],
"fee_details": []
}
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | ProfitAnalysisDetailResponse |
| 400 | Bad request | None |
Schemas
ProfitAnalysisDetailResponse
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | false | Security name |
| currency | string | false | Currency |
| profit | string | false | Total profit/loss |
| start | integer | false | Period start |
| end | integer | false | Period end |
| start_date | string | false | Start date |
| end_date | string | false | End date |
| default_tag | integer | false | Default display tag |
| underlying_details | object | false | Underlying asset P&L breakdown |
| updated_at | string | false | Last update timestamp |
| updated_date | string | false | Last update date |
| derivative_pnl_details | object | false | Derivatives P&L breakdown |
ProfitDetails
| Name | Type | Required | Description |
|---|---|---|---|
| profit | string | false | Total profit/loss |
| holding_value | string | false | Current holding value |
| holding_value_at_beginning | string | false | Holding value at period start |
| holding_value_at_ending | string | false | Holding value at period end |
| long_holding_value | string | false | Long position value |
| short_holding_value | string | false | Short position value |
| cumulative_credited_amount | string | false | Cumulative credited amount |
| cumulative_debited_amount | string | false | Cumulative debited amount |
| cumulative_fee_amount | string | false | Cumulative fee amount |
| credited_details | object[] | false | Credit transaction details |
| debited_details | object[] | false | Debit transaction details |
| fee_details | object[] | false | Fee transaction details |

