Realized Gains and Loses Summary
realized_gains_and_loses_summary
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
Result Response
Parameter | Type | Meaning |
---|---|---|
is_success | bool | Interface result |
data | List | RealizedSummary list is returned |
message | string | is_success = False error description is returned |
RealizedSummary Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
start_date | string | Query start date |
end_date | string | Query end date |
branch_no | string | Branch number |
account | string | Account |
stock_no | string | Symbol |
buy_sell | BSAction | Buy/Sell Type : Buy 、 Sell |
order_type | OrderType | Order Type : Stock 、 Margin 、 Short 、 DayTrade 、SBL Security Landing |
filled_qty | int | Filled quantity |
filled_avg_price | float | Filled average price |
realized_profit_and_loss | int | Realized 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)
},
...
]
}