Close Position Record
close_position_record
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
start_date | string | Query Start Date |
end_date | string | Query End Date |
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 |
CloseRecord Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
date | string | Data Date |
branch_no | string | Branch Number |
position_kind | int | Position Kind : 1 Future 、2 Option |
account | string | Account |
order_no | string | Order Number |
market | string | Market Type : TAIMEX Future 、 Option |
symbol | string | Symbol |
expiry_date | string | Expiry Date |
strike_price | float | Strike Price |
call_put | CallPut | Call / Put : Call Call 、Put Put |
buy_sell | BSAction | Buy/Sell : Buy Buy、Sell Sell |
order_type | FutOptOrderType | Order Type : New 、 Close 、 Auto 、 FdayTrade DayTrade |
price | float | Deal Price |
orig_lots | int | Original Lots |
transaction_fee | float | Transaction Fee |
tax | float | Tax |
Request Example
sdk.futopt_accounting.close_position_record(accounts,"20240310","20240410")
Response Example
Result {
is_success: True,
message: None,
data :[
CloseRecord {
date: "2024/04/10", # Date (string)
branch_no: "15000", # Branch Number (string)
account: "9974825", # Account (string)
position_kind: 1, # Position Kind : `1` Futures, `2` Options (int)
order_no: "15001-0000", # Order Number (string)
market: "TAIMEX", # Market : `TAIMEX` Futures, Options (string)
symbol: "FITX", # Symbol (string)
expiry_date: 202404, # Expiry Date (string)
strike_price: None, # Strike Price (float)
call_put: None, # Call/Put Type : `Call` Call, `Put` Put (int)
buy_sell: Buy, # Buy/Sell Type : `Buy`, `Sell` (int)
price: 20847.0, # Deal Price (float)
orig_lots: 1, # Original Lots (int)
transaction_fee: 40.0, # Transaction Fee (float)
tax: 83.0, # Tax (float)
},
CloseRecord {
date: "2024/04/10", # Date (string)
branch_no: "15000", # Branch Number (string)
account: "9974825", # Account (string)
position_kind: 1, # Position Kind : `1` Futures, `2` Options (int)
order_no: "C0005-0000", # Order Number (string)
market: "TAIMEX", # Market : `TAIMEX` Futures, Options (string)
symbol: "FITX", # Symbol (string)
expiry_date: 202405, # Expiry Date (string)
strike_price: None, # Strike Price (float)
call_put: None, # Call/Put Type : `Call` Call, `Put` Put (int)
buy_sell: Buy, # Buy/Sell Type : `Buy`, `Sell` (int)
price: 20890.0, # Deal Price (float)
orig_lots: 1, # Original Lots (int)
transaction_fee: 40.0, # Transaction Fee (float)
tax: 84.0, # Tax (float)
}
]
}