Realized Gains and Loses(Detail)
realizedGainsAndLoses
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
Result Response
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | Object | Realized list is returned |
message | string ? (optional) | isSuccess = False error description is returned |
Realized Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
date | string | Data date |
branchNo | string | Branch number |
account | string | Account |
stockNo | string | Symbol |
buySell | js:string / ts:BSAction | Buy/Sell Type : Buy 、 Sell |
filledQty | number | Filled Quantity |
filledPrice | number | Filled Price |
orderType | js:string / ts:OrderType | Order Type : Stock 、 Margin 、 Short Short sale 、 DayTrade 、 SBL Security Landing |
realizedProfit | number | Realized profit |
realizedLoss | number | Realized loss |
Request Example
sdk.accounting.realizedGainsAndLoses(account);
Response Example
{
isSuccess: true,
data:[
{
date: '2023/08/29', // Data date (string)
branchNo: '6460', // Branch number (string)
account: '26', // Account (string)
stockNo: '1101', // Symbol (string)
buySell: 'Sell', // Buy/Sell Type (string)
filledQty: 1000, // Filled Quantity (number)
filledPrice: 35.3, // Filled Price (number)
orderType: 0, // Order Type (number)
realizedProfit: 0, // Realized profit (number)
realizedLoss: 906 // Realized loss (number)
},
...
]
}