Skip to main content

已實現損益彙總

RealizedGainsAndLosesSummary

輸入參數

參數類別說明
accountAccount帳號

Result 回傳

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

已實現彙總 RealizedSummary 欄位

Return type : Object

參數類別說明
startDatestring彙總起始日
endDatestring彙總截止日
branchNostring分公司代號
accountstring帳號
stockNostring股票代號
buySellBsAction買賣別 : Buy 買 、 Sell
orderTypeOrderType委託單類型 : Stock 現股 、 Margin 融資 、 Short 融券 、 DayTrade 現股當沖 、 SBL 借券
filledQtyint成交股數
filledAvgPricedouble成交均價
realizedProfitAndLossint已實現損益金額

請求範例

Console.WriteLine(sdk.Accounting.RealizedGainsAndLosesSummary(account));

回傳範例

{
isSuccess = True,
message = ,
data = [
RealizedSummary{
startDate = 20230801, // 起始日期 (string)
endDate = 20230801, // 截止日期 (string)
branchNo = 6460, // 分公司代號 (string)
account = 26, // 帳號 (string)
stockNo = 1101, // 股票代號 (string)
buySell = Sell, // 買賣別 (BsAction)
orderType = Stock, // 委託單類型 (OrderType)
filledQty = 3000, // 成交股數 (int)
filledAvgPrice = 35.7, // 成交均價 (double)
realizedProfitAndLoss = 34026 // 已實現損益金額 (int)
},
...
]
}