Skip to main content

Realized Gains and Loses(Detail)

realized_gains_and_loses

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Response

ParameterTypeMeaning
is_successboolInterface result
dataListRealized list is returned
messagestringis_success = False error description is returned

Realized Example

Return type : Object

ParameterTypeMeaning
datestringData date
branch_nostringBranch number
accountstringAccount
stock_nostringSymbol
buy_sellBSActionBuy/Sell Type : BuySell
filled_qtyintFilled quantity
filled_pricefloatFilled price
order_typeOrderTypeOrder Type : StockMarginShortDayTradeSBL Security Landing
realized_profitintRealized profit
realized_lossintRealized loss

Request Example

sdk.accounting.realized_gains_and_loses(account)

Response Example

Result {
is_success: True,
message: None,
data :
Realized{
date: "2023/10/17", # Data date (string)
branch_no: "6460", # Branch number (string)
account: "26", # Account (string)
stock_no: "1101", # Symbol (string)
buy_sell: Sell, # Buy/Sell type (BSAction)
filled_qty: 1000, # Filled quantity (int)
filled_price: 35.0, # Filled price (float)
order_type: Stock, # Order type (OrderType)
realized_profit: 0, # Realized profit (int)
realized_loss: 203 # Realized loss (int)
}
}