Skip to main content

Realized Gains and Loses Summary

RealizedGainsAndLosesSummary

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Reponse

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

RealizedSummary Parameter

Return type : Object

ParameterTypeMeaning
startDatestringQuery start date
endDatestringQuery end date
branchNostringBranch number
accountstringAccount
stockNostringSymbol
buySellBsActionBuy/Sell Type : BuySell
orderTypeOrderTypeOrder Type : StockMarginShort Short sale 、 DayTradeSBL Security Landing
filledQtyintFilled quantity
filledAvgPricedoubleFilled average price
realizedProfitAndLossintRealized profit and loss

Request Example

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

Request Example

{
isSuccess = True,
message = ,
data =[
RealizedSummary{
startDate = 20230801, // Query start date (string)
endDate = 20230901, // Query end date (string)
branchNo = 6460, // Branch number (string)
account = 26, // Account (string)
stockNo = 1101, // Symbol (string)
buySell = Sell, // Buy/Sell type (BsAction)
orderType = Stock, // Order Type (OrderType)
filledQty = 3000, // Filled quantity (int)
filledAvgPrice = 35.7, // Filled average price (double)
realizedProfitAndLoss = 34026 // Realized profit and loss (int)
},
...
]
}