Skip to main content

Realized P&L Summary

realized_gains_and_loses_summary

Input Parameters

ParameterTypeMeaning
accountAccountAccount

Result

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

RealizedSummary Parameter

Return type : Object

ParameterTypeMeaning
start_datestringQuery start date
end_datestringQuery end date
branch_nostringBranch number
accountstringAccount
stock_nostringSymbol
buy_sellBSActionBuy/Sell Type : Buy, Sell
order_typeOrderTypeOrder Type : Stock, Margin, Short, DayTrade,SBL Securities borrowing and lending
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", # Summary start date (string)
end_date: "20231011", # Summary end date (string)
branch_no: "6460", # Branch code (string)
account: "26", # Account (string)
stock_no: "1101", # Symbol (string)
buy_sell: Sell, # Buy/sell side (BSAction)
order_type: Stock, # Order Type (OrderType)
filled_qty: 1000, # Filled quantity (int)
filled_avg_price: 35.0, # Average fill price (float)
realized_profit_and_loss: -203 # Realized profit and loss amount (int)
},
...
]
}