Skip to main content

Realized P&L (Detail)

realizedGainsAndLoses

Input Parameters

ParameterTypeMeaning
accountAccountAccount

Result

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

Realized Parameter

Return type : Object

ParameterTypeMeaning
datestringData date
branchNostringBranch number
accountstringAccount
stockNostringSymbol
buySelljs:string / ts:BSActionBuy/Sell Type : Buy, Sell
filledQtynumberFilled Quantity
filledPricenumberFilled Price
orderTypejs:string / ts:OrderTypeOrder Type : Stock, Margin, Short Short sale, DayTrade, SBL Securities borrowing and lending
realizedProfitnumberRealized profit
realizedLossnumberRealized loss

Request Example

sdk.accounting.realizedGainsAndLoses(account);

Response Example

{
isSuccess: true,
data:[
{
date: '2023/08/29',
branchNo: '6460',
account: '26',
stockNo: '1101',
buySell: Sell,
filledQty: 1000,
filledPrice: 35.3,
orderType: 0,
realizedProfit: 0,
realizedLoss: 906
},
...
]
}