Realized P&L Summary
realizedGainsAndLosesSummary
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
Result
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Whether successful |
| data | Object | RealizedSummary list is returned |
| message | string ? (optional) | Error message returned when isSuccess = false |
RealizedSummary Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| startDate | string | Query Start Date |
| endDate | string | Query End Date |
| branchNo | string | Branch Number |
| account | string | Account |
| stockNo | string | Symbol |
| buySell | js:string / ts:BSAction | Buy/Sell Type : Buy, Sell |
| orderType | js:string / ts:OrderType | Order Type : Stock, Margin, Short Short sale, DayTrade, SBL Securities borrowing and lending |
| filledQty | number | Filled Quantity |
| filledAvgPrice | number | Filled Average Price |
| realizedProfitAndLoss | number | Realized Profit and Loss |
Request Example
sdk.accounting.realizedGainsAndLosesSummary(account);
Response Example
{
isSuccess: true,
data:[
{
startDate: '20230808',
endDate: '20230808',
branchNo: '6460',
account: '26',
stockNo: '1101',
buySell: Sell,
orderType: 0,
filledQty: 3000,
filledAvgPrice: 35.7,
realizedProfitAndLoss: 34026
}
...
]
}