Realized Gain and Loss
RealizedGainsAndLoses
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
Result Reponse
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | List | Realized list is returned |
message | string | 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 | BsAction | Buy/Sell Type : Buy 、 Sell |
filledQty | int | Filled quantity |
filledPrice | double | Filled price |
orderType | OrderType | Order Type : Stock 、 Margin 、 Short Short sale 、 DayTrade 、 SBL Security Landing |
realizedProfit | int | Realized profit |
realizedLoss | int | Realized 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)
},
...
]
}