Skip to main content

Realized P&L Summary

realizedGainsAndLosesSummary

Input Parameters

ParameterTypeMeaning
accountAccountAccount

Result

ParameterTypeMeaning
isSuccessboolWhether successful
dataObjectRealizedSummary list is returned
messagestring ? (optional)Error message returned when isSuccess = false

RealizedSummary Parameter

Return type : Object

ParameterTypeMeaning
startDatestringQuery Start Date
endDatestringQuery End Date
branchNostringBranch Number
accountstringAccount
stockNostringSymbol
buySelljs:string / ts:BSActionBuy/Sell Type : Buy, Sell
orderTypejs:string / ts:OrderTypeOrder Type : Stock, Margin, Short Short sale, DayTrade, SBL Securities borrowing and lending
filledQtynumberFilled Quantity
filledAvgPricenumberFilled Average Price
realizedProfitAndLossnumberRealized 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
}
...
]
}