Skip to main content

Realized Gains and Loses Summary

realizedGainsAndLosesSummary

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Response

ParameterTypeMeaning
isSuccessboolInterface result
dataObjectRealizedSummary list is returned
messagestring ? (optional)isSuccess = False error description is returned

RealizedSummary Parameter

Return type : Object

ParameterTypeMeaning
startDatestringQuery Start Date
endDatestringQuery End Date
branchNostringBranch Number
accountstringAccount
stockNostringSymbol
buySelljs:string / ts:BSActionBuy/Sell Type : BuySell
orderTypejs:string / ts:OrderTypeOrder Type : StockMarginShort Short sale 、 DayTradeSBL Security Landing
filledQtynumberFilled Quantity
filledAvgPricenumberFilled Average Price
realizedProfitAndLossnumberRealized Profit and Loss

Request Example

sdk.accounting.RealizedGainsAndLosesSummary(account);

Response Example

{
isSuccess: true,
data:[
{
startDate: '20230808', // Query Start Date (string)
endDate: '20230830', // Query End Date (string)
branchNo: '6460', // Branch Number (string)
account: '26', // Account (string)
stockNo: '1101', // Symbol (string)
buySell: 'Sell', // Buy/Sell Type (string)
orderType: 0, // Order Type (number)
filledQty: 3000, // Filled Quantity (number)
filledAvgPrice: 35.7, // Filled Average Price (number)
realizedProfitAndLoss: 34026 // Realized Profit and Loss (number)
},
...
]
}