Realized P&L Summary
realized_gains_and_loses_summary
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
Result
| Parameter | Type | Meaning |
|---|---|---|
| is_success | bool | Whether successful |
| data | List | RealizedSummary list is returned |
| message | string | Error message returned when is_success = false |
RealizedSummary Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| start_date | string | Query start date |
| end_date | string | Query end date |
| branch_no | string | Branch number |
| account | string | Account |
| stock_no | string | Symbol |
| buy_sell | BSAction | Buy/Sell Type : Buy, Sell |
| order_type | OrderType | Order Type : Stock, Margin, Short, DayTrade,SBL Securities borrowing and lending |
| filled_qty | int | Filled quantity |
| filled_avg_price | float | Filled average price |
| realized_profit_and_loss | int | Realized profit and loss |
Request Example
sdk.accounting.realized_gains_and_loses_summary(account)
Response Example
Result {
is_success: True,
message: None,
data : [RealizedSummary{
start_date: "20231011", # Summary start date (string)
end_date: "20231011", # Summary end date (string)
branch_no: "6460", # Branch code (string)
account: "26", # Account (string)
stock_no: "1101", # Symbol (string)
buy_sell: Sell, # Buy/sell side (BSAction)
order_type: Stock, # Order Type (OrderType)
filled_qty: 1000, # Filled quantity (int)
filled_avg_price: 35.0, # Average fill price (float)
realized_profit_and_loss: -203 # Realized profit and loss amount (int)
},
...
]
}