Skip to main content

Query Close Position

QueryClosePosition

Request Parameter

ParameterTypeMeaning
accountAccountAccount
start_datestringQuery Start Date
end_datestringQuery End Date

Result Reponse

ParameterTypeMeaning
isSuccessboolInterface result
dataListCloseRecord list is returned
messagestringisSuccess = False error description is returned

CloseRecord Parameter

Return type : Object

ParameterTypeMeaning
datestringDate
branchNostringBranch Number
positionKindintPosition Kind : 1 Future 、2 Option
accountstringAccount
orderNostringOrder Number
marketstringMarket Type : TAIMEX Future 、 Option
symbolstringSymbol
expiryDatestringExpiry Date
strikePricedoubleStrike Price
callPutCallPutCall / Put : Call Call 、Put Put
buySellBsActionBuy/Sell : Buy Buy、Sell Sell
orderTypeFutOptOrderTypeOrder Type : NewCloseAutoFdayTrade
pricedoubleDeal Price
origLotsintOriginal Lots
transactionFeedoubleTransaction Fee
taxdoubleTax

Request Example

Console.WriteLine(sdk.FutOptAccounting.ClosePositionRecord(accounts,"20240310","20240410"));

Request Example

{
isSuccess = True,
message = ,
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 (double)
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 (double)
orig_lots = 1, // Original Lots (int)
transaction_fee = 40.0, // Transaction Fee (double)
tax = 83.0, // Tax (double)
},
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 (double)
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 (double)
orig_lots = 1, // Original Lots (int)
transaction_fee = 40.0, // Transaction Fee (double)
tax = 84.0, // Tax (double)
},
...
]
}