平倉查詢
ClosePositionRecord
輸入參數
參數 | 類別 | 說明 |
---|---|---|
account | Account | 帳號 |
startDate | string | 查詢開始日 |
endDate | string (空值預設與開始日相同) | 查詢終止日 |
Result 回傳
參數 | 類別 | 說明 |
---|---|---|
isSuccess | bool | 是否成功 |
data | List | 回傳已實現彙總資訊 |
message | string | 當isSuccess = False 回傳錯誤訊息 |
平倉 CloseRecord 欄位
Return type = Object
參數 | 類別 | 說明 |
---|---|---|
date | string | 資料日期 |
branchNo | string | 分公司代號 |
positionKind | int | 部位種類 : 1 期貨 、2 選擇權 |
account | string | 帳號 |
orderNo | string | 委託書號 |
market | string | 市場別 : TAIMEX 期貨、選擇權 |
symbol | string | 商品代號 |
expiryDate | string | 履約日 |
strikePrice | double | 履約價 |
callPut | CallPut | 權利別 : Call Call 、Put Put |
buySell | BsAction | 買賣別 : Buy 買、Sell 賣 |
orderType | FutOptOrderType | 委託單類型 : New 新倉 、 Close 平倉 、 Auto 自動 、 FdayTrade 當沖 |
price | double | 成交價 |
origLots | int | 原始口數 |
transactionFee | double | 交易手續費 |
tax | double | 交易稅 |
請求範例
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)
}
]
}