Skip to main content

已實現損益查詢

RealizedGainsAndLoses

輸入參數

參數類別說明
accountAccount帳號

Result 回傳

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

已實現 Realized 欄位

Return type : Object

參數類別說明
datestring資料日期
branchNostring分公司代號
accountstring帳號
stockNostring股票代號
buySellBsAction買賣別 : Buy 買 、 Sell
filledQtyint成交股數
filledPricedouble成交價
orderTypeOrderType委託單類型 : Stock 現股 、 Margin 融資 、 Short 融券 、 DayTrade 現股當沖、SBL借券
realizedProfitint已實現獲利金額
realizedLossint已實現損失金額

請求範例

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

回傳範例

{
isSuccess = True,
message = ,
data =[
Realized{
date = 2023/08/16, // 資料日期 (string)
branchNo = 6460, // 分公司代號 (string)
account = 26, // 帳號 (string)
stockNo = 1101, // 股票代號 (string)
buySell = Sell, // 買賣別 (BsAction)
filledQty = 1000, // 成交股數 (int)
filledPrice = 36.5, // 成交價 (double)
orderType = Stock, // 委託單類型 (OrderType)
realizedProfit = 36339, // 已實現獲利金額 (int)
realizedLoss = 0 // 已實現損失金額 (int)
},
...
]
}