Skip to main content

Realized Gains and Loses(Detail)

realizedGainsAndLoses

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Response

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

Realized Parameter

Return type : Object

ParameterTypeMeaning
datestringData date
branchNostringBranch number
accountstringAccount
stockNostringSymbol
buySelljs:string / ts:BSActionBuy/Sell Type : BuySell
filledQtynumberFilled Quantity
filledPricenumberFilled Price
orderTypejs:string / ts:OrderTypeOrder Type : StockMarginShort Short sale 、 DayTradeSBL Security Landing
realizedProfitnumberRealized profit
realizedLossnumberRealized 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)
},
...
]
}