Skip to main content

Realized Gains and Loses Summary

realized_gains_and_loses_summary

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Response

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

RealizedSummary Parameter

Return type : Object

ParameterTypeMeaning
start_datestringQuery start date
end_datestringQuery end date
branch_nostringBranch number
accountstringAccount
stock_nostringSymbol
buy_sellBSActionBuy/Sell Type : BuySell
order_typeOrderTypeOrder Type : StockMarginShortDayTradeSBL Security Landing
filled_qtyintFilled quantity
filled_avg_pricefloatFilled average price
realized_profit_and_lossintRealized profit and loss

Request Example

sdk.accounting.realized_gains_and_loses_summary(account)

Response Example

Result {
is_success: True,
message: None,
data :[
RealizedSummary{
start_date: "20231011", # Query start date (string)
end_date: "20231011", # Query end date (string)
branch_no: "6460", # Branch number (string)
account: "26", # Account (string)
stock_no: "1101", # Symbol (string)
buy_sell: Buy, # Buy/Sell type (BSAction)
order_type: Stock, # Order Type (int)
filled_qty: 1000, # Filled quantity (int)
filled_avg_price: 35.0, # Filled average price (float)
realized_profit_and_loss: -203 # Realized profit and loss (int)
},
...
]
}