Skip to main content

已實現損益彙總

realizedGainsAndLosesSummary

輸入參數

參數類別說明
accountAccount帳號

Result 回傳

參數類別說明
isSuccessbool是否成功
dataObject回傳已實現彙總資訊
messagestring ? (optional)當isSuccess = false 回傳錯誤訊息

已實現彙總 RealizedSummary 欄位

Return type : Object

參數類別說明
startDatestring彙總起始日
endDatestring彙總截止日
branchNostring分公司代號
accountstring帳號
stockNostring股票代號
buySelljs:string / ts:BSAction買賣別 : Buy 買 、 Sell
orderTypejs:string / ts:OrderType委託單類型 : Stock 現股 、 Margin 融資 、 Short 融券 、 DayTrade 現股當沖 、SBL 借券
filledQtynumber成交股數
filledAvgPricenumber成交均價
realizedProfitAndLossnumber已實現損益金額

請求範例

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
}
...
]
}