Query Close Position
QueryClosePosition
Request Parameter
Parameter | Type | Meaning |
---|---|---|
account | Account | Account |
start_date | string | Query Start Date |
end_date | string | Query End Date |
Result Reponse
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | List | CloseRecord list is returned |
message | string | isSuccess = False error description is returned |
CloseRecord Parameter
Return type : Object
Parameter | Type | Meaning |
---|---|---|
date | string | Date |
branchNo | string | Branch Number |
positionKind | int | Position Kind : 1 Future 、2 Option |
account | string | Account |
orderNo | string | Order Number |
market | string | Market Type : TAIMEX Future 、 Option |
symbol | string | Symbol |
expiryDate | string | Expiry Date |
strikePrice | double | Strike Price |
callPut | CallPut | Call / Put : Call Call 、Put Put |
buySell | BsAction | Buy/Sell : Buy Buy、Sell Sell |
orderType | FutOptOrderType | Order Type : New 、 Close 、 Auto 、 FdayTrade |
price | double | Deal Price |
origLots | int | Original Lots |
transactionFee | double | Transaction Fee |
tax | double | Tax |
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)
},
...
]
}