Realized Gains and Loses Summary
realizedGainsAndLosesSummary
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
Result Response
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Interface result |
| data | Object | RealizedSummary list is returned |
| message | string ? (optional) | isSuccess = False error description is returned |
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 Security Landing |
| 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', // 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)
},
...
]
}