Skip to main content

Close Position Record

close_position_record

Request Parameter

ParameterTypeMeaning
accountAccountAccount
start_datestringQuery Start Date
end_datestringQuery End Date

Result Response

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

CloseRecord Parameter

Return type : Object

ParameterTypeMeaning
datestringData Date
branch_nostringBranch Number
position_kindintPosition Kind : 1 Future 、2 Option
accountstringAccount
order_nostringOrder Number
marketstringMarket Type : TAIMEX Future 、 Option
symbolstringSymbol
expiry_datestringExpiry Date
strike_pricefloatStrike Price
call_putCallPutCall / Put : Call Call 、Put Put
buy_sellBSActionBuy/Sell : Buy Buy、Sell Sell
order_typeFutOptOrderTypeOrder Type : NewCloseAutoFdayTrade DayTrade
pricefloatDeal Price
orig_lotsintOriginal Lots
transaction_feefloatTransaction Fee
taxfloatTax

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)
}
]
}