Skip to main content

Realized P&L (Detail)

realized_gains_and_loses

Input Parameters

ParameterTypeMeaning
accountAccountAccount

Result

ParameterTypeMeaning
is_successboolWhether successful
dataListRealized list is returned
messagestringError message returned when is_success = false

Realized Example

Return type : Object

ParameterTypeMeaning
datestringData date
branch_nostringBranch number
accountstringAccount
stock_nostringSymbol
buy_sellBSActionBuy/Sell Type : Buy, Sell
filled_qtyintFilled quantity
filled_pricefloatFilled price
order_typeOrderTypeOrder Type : Stock, Margin, Short, DayTrade, SBL Securities borrowing and lending
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 code (string)
account: "26", # Account (string)
stock_no: "1101", # Symbol (string)
buy_sell: Sell, # Buy/sell side (BSAction)
filled_qty: 1000, # Filled quantity (int)
filled_price: 35.0, # Fill price (float)
order_type: Stock, # Order Type (OrderType)
realized_profit: 0, # Realized profit amount (int)
realized_loss: 203 # Realized loss amount (int)
},
...
]
}