Skip to main content

平倉查詢

ClosePositionRecord

輸入參數

參數類別說明
accountAccount帳號
startDatestring查詢開始日
endDatestring (空值預設與開始日相同)查詢終止日

Result 回傳

參數類別說明
isSuccessbool是否成功
dataList回傳已實現彙總資訊
messagestring當isSuccess = False 回傳錯誤訊息

平倉 CloseRecord 欄位

Return type = Object

參數類別說明
datestring資料日期
branchNostring分公司代號
positionKindint部位種類 : 1 期貨 、2 選擇權
accountstring帳號
orderNostring委託書號
marketstring市場別 : TAIMEX 期貨、選擇權
symbolstring商品代號
expiryDatestring履約日
strikePricedouble履約價
callPutCallPut權利別 : Call Call 、Put Put
buySellBsAction買賣別 : Buy 買、Sell
orderTypeFutOptOrderType委託單類型 : New 新倉 、 Close 平倉 、 Auto 自動 、 FdayTrade 當沖
pricedouble成交價
origLotsint原始口數
transactionFeedouble交易手續費
taxdouble交易稅

請求範例

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

回傳範例

{
isSuccess = True,
message = ,
data = [
CloseRecord {
date = 2024/04/10, // 資料日期(string)
branchNo = 15000, // 分公司代號(string)
account = 9974825, // 帳號 (string)
positionKind = 1, // 部位種類 `1` 期貨, `2` 選擇權 (int)
orderNo = 15001-0000, // 委託書號 (string)
market = TAIMEX, // 市場別 `TAIMEX` (string)
symbol = FITX, // 商品代號 (string)
expiryDate = 202404, // 履約日 (string)
strikePrice = , // 履約價 (double)
callPut = , // Call/Put Call、 Put (CallPut)
buySell = Buy, // Buy/Sell Buy 、 Sell(BsAction)
price = 20847.0, // 成交價 (double)
origLots = 1, // 原始口數 (int)
transactionFee = 40.0, // 交易手續費 (double)
tax = 83.0, // 交易稅 (double)
},
CloseRecord {
date = 2024/04/10, // 資料日期 (string)
branchNo = 15000, // 分公司代號 (string)
account = 9974825, // 帳號 (string)
positionKind = 1, // 部位種類 `1` 期貨, `2` 選擇權 (int)
orderNo = C0005-0000, // 委託書號 (string)
market = TAIMEX, // 市場別 期貨, (string)
symbol = FITX, // 商品代號 (string)
expiryDate = 202405, // 履約日 (string)
strikePrice = , // 履約價 (double)
callPut = , // Call/Put Call, Put (CallPut)
buySell = Buy, // Buy/Sell Buy, Sell (BsAction)
price = 20890.0, // 成交價 (double)
origLots = 1, // 原始口數 (int)
transactionFee = 40.0, // 交易手續費 (double)
tax = 84.0, // 交易稅 (double)
}
]
}