已實現損益查詢
RealizedGainsAndLoses
輸入參數
參數 | 類別 | 說明 |
---|---|---|
account | Account | 帳號 |
Result 回傳
參數 | 類別 | 說明 |
---|---|---|
isSuccess | bool | 是否成功 |
data | List | 回傳已實現資訊 |
message | string | 當isSuccess = False 回傳錯誤訊息 |
已實現 Realized 欄 位
Return type : Object
參數 | 類別 | 說明 |
---|---|---|
date | string | 資料日期 |
branchNo | string | 分公司代號 |
account | string | 帳號 |
stockNo | string | 股票代號 |
buySell | BsAction | 買賣別 : Buy 買 、 Sell 賣 |
filledQty | int | 成交股數 |
filledPrice | double | 成交價 |
orderType | OrderType | 委託單類型 : Stock 現股 、 Margin 融資 、 Short 融券 、 DayTrade 現股當沖、SBL 借券 |
realizedProfit | int | 已實現獲利金額 |
realizedLoss | int | 已實現損失金額 |
請求範例
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)
},
...
]
}