Skip to main content

Realized Gain and Loss

RealizedGainsAndLoses

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Reponse

ParameterTypeMeaning
isSuccessboolInterface result
dataListRealized list is returned
messagestringisSuccess = False error description is returned

Realized Parameter

Return type : Object

ParameterTypeMeaning
datestringData date
branchNostringBranch number
accountstringAccount
stockNostringSymbol
buySellBsActionBuy/Sell Type : BuySell
filledQtyintFilled quantity
filledPricedoubleFilled price
orderTypeOrderTypeOrder Type : StockMarginShort Short sale 、 DayTradeSBL Security Landing
realizedProfitintRealized profit
realizedLossintRealized loss

Request Example

Console.WriteLine(sdk.Accounting.RealizedGainsAndLoses(account));

Request Example

{
isSuccess = True,
message = ,
data = [
Realized{
date = 2023/08/16, // Data date (string)
branchNo = 6460, // Branch number (string)
account = 26, // Account (string)
stockNo = 1101, // Symbol (string)
buySell = Sell, // Buy/Sell type (BsAction)
filledQty = 1000, // Filled quantity (int)
filledPrice = 36.5, // Filled price (double)
orderType = Stock, // Order type (OrderType)
realizedProfit = 36339, // Realized profit amount (int)
realizedLoss = 0 // Realized loss amount (int)
},
...
]
}