已實現損益彙總
realizedGainsAndLosesSummary
輸入參數
| 參數 | 類別 | 說明 |
|---|---|---|
| account | Account | 帳號 |
Result 回傳
| 參數 | 類別 | 說明 |
|---|---|---|
| isSuccess | bool | 是否成功 |
| data | Object | 回傳已實現彙總資訊 |
| message | string ? (optional) | 當isSuccess = false 回傳錯誤訊息 |
已實現彙總 RealizedSummary 欄位
Return type : Object
| 參數 | 類別 | 說明 |
|---|---|---|
| startDate | string | 彙總起始日 |
| endDate | string | 彙總截止日 |
| branchNo | string | 分公司代號 |
| account | string | 帳號 |
| stockNo | string | 股票代號 |
| buySell | js:string / ts:BSAction | 買賣別 : Buy 買 、 Sell 賣 |
| orderType | js:string / ts:OrderType | 委託單類型 : Stock 現股 、 Margin 融資 、 Short 融券 、 DayTrade 現沖先賣 、 SBL 借券 |
| filledQty | number | 成交股數 |
| filledAvgPrice | number | 成交均價 |
| realizedProfitAndLoss | number | 已實現損益金額 |
請求範例
sdk.accounting.realizedGainsAndLosesSummary(account);
回傳範例
{
isSuccess: true,
data:[
{
startDate: '20230808',
endDate: '20230808',
branchNo: '6460',
account: '26',
stockNo: '1101',
buySell: Sell,
orderType: 0,
filledQty: 3000,
filledAvgPrice: 35.7,
realizedProfitAndLoss: 34026
}
...
]
}