Skip to main content

庫存與未實現損益查詢

inventories

輸入參數

參數類別說明
accountAccount帳號

PositionResponse 欄位

參數類別說明
nostring序號
prevDayQuantitystring昨日庫存股數
currentQuantitystring即時庫存股數
todayQuantitystring今日增減成交股數
todayBuyQuantitystring今日買進成交數量
todaySellQuantitystring今日賣出成交數量
coststring付出成本
marketValuestring現值
unrealizedProfitLossstring未實現損益
unrealizedProfitLossRatestring未實現損益率
securitiesTransactionIncomeTaxstring證券交易所得稅
healthInsuranceFeestring健保補充費
feestring手續費
taxstring交易稅
openMarginAmountstring未償還融資/券金額
openGuaranteeAmountstring未償還融券保證金
openShortCollateralstring未償還擔保品
shortSellingFeestring融券手續費
ownFundsAmountstring自備款
otherCoststring其他費用 ( 除手續費、交易稅外的費用項目 (資/券利息也包含在內) )
intereststring利息
unrealizedNetAmountstring預估淨收付
totalProfitLossstring總損益
realizedProfitLossstring當日已實現損益
dividendAmountstring除息金額
accountSummaryobject帳戶摘要
└─ marginPositionMarketValueSumstring融資市值加總
└─ shortPositionMarketValueSumstring融券市值加總
└─ shortCollateralSumstring融券擔保品加總
└─ marginLimitstring融資限額
└─ shortLimitstring融券限額
└─ guaranteeAmountSumstring擔保金總和
└─ marginAmountSumstring融資金額總和
└─ shortAmountSumstring融券金額總和
└─ accountMaintenanceRatestring帳戶維持率
└─ settlementTodaystring今日交割
└─ settlementYesterdaystring昨日交割
└─ settlementNetstring淨交割金額
positionSummariesarray持倉摘要清單
└─ branchIdstring分公司代號
└─ custIdstring帳號
└─ nostring序號
└─ symbolstring股票代碼
└─ namestring用戶名
└─ symbolNamestring股票名稱
└─ stockEvaluationstring股票評價
└─ orderTypestring交易類型
└─ orderTypeNamestring交易類型名稱
└─ buySellstring買賣別 : BuySell
└─ prevDayQuantitystring昨日庫存股數
└─ currentQuantitystring即時庫存股數
└─ totalQuantitystring今日交易增減成交股數
└─ totalBuyQuantitystring今日買進成交股數
└─ totalSellQuantitystring今日賣出成交股數
└─ coststring成本
└─ costBeforeDividendstring成本 (不扣除息金額)
└─ averagePricestring成交均價
└─ openMarginAmountstring未償還融資金額
└─ guaranteeAmountstring保證金
└─ openGuaranteeAmountstring未償還融券保證金
└─ shortCollateralstring擔保品
└─ openShortCollateralstring未償還擔保品
└─ shortSellingFeestring融券手續費
└─ ownFundsAmountstring自備款
└─ guaranteeDefaultAmountstring擔保金缺額
└─ currentPricestring現價
└─ marketValuestring市值
└─ unrealizedProfitLossstring未實現損益
└─ unrealizedProfitLossRatestring未實現損益率
└─ feestring手續費
└─ taxstring稅金
└─ intereststring利息
└─ otherCoststring其他費用 ( 除手續費、交易稅外的費用項目 (資/券利息也包含在內) )
└─ unrealizedNetAmountstring預估淨收付金額
└─ targetPricestring標的股票現價
└─ portfolioTypestring權證種類 :1 認購權證
└─ holdingPercentstring持有比率
└─ securitiesIncomeTaxstring證券所得稅
└─ healthInsuranceFeestring健保補充費
└─ referencePricestring參考價格
└─ totalProfitstring總損益
└─ realizedProfitstring當日已實現損益
└─ pledgeQuantitystring質押數量
└─ amountstring會總成交價金
└─ averageFilledPricestring平均成交價格
└─ breakEvenPricestring損益兩平價格
└─ dividendAmountstring股利金額
└─ positionDetailsarray持倉明細
  └─ nostring序號
  └─ tDatestring成交日期
  └─ orderTypestring交易類型
  └─ orderTypeNamestring訂單類型名稱
  └─ buySellstring買賣別 : BuySell
  └─ orderNostring委託書號
  └─ filledNostring成交序號
  └─ filledQuantitystring成交數量
  └─ prevDayQuantitystring昨日庫存股數
  └─ filledPricestring成交價格
  └─ filledAmountstring成交金額
  └─ currentPricestring現價
  └─ marketValuestring市值
  └─ marginAmountstring融資金額
  └─ openMarginAmountstring未償還融資/券金額
  └─ shortCollateralstring融券抵押品
  └─ openShortCollateralstring未償還擔保品
  └─ guaranteeAmountstring保證金
  └─ openGuaranteeAmountstring未償還融券保證金
  └─ securitiesLendingFeestring標借費
  └─ shortSellingFeestring融券費手續費
  └─ feestring手續費
  └─ taxstring交易稅
  └─ intereststring利息
  └─ coststring收付金額
  └─ costBeforeDividendstring收付金額(不扣除息金額)
  └─ changeTypestring異動別
  └─ ownFundsAmountstring自備款
  └─ portfolioTypestring權證種類
  └─ custIdstring帳號
  └─ namestring名稱
  └─ branchIdstring分行 ID
  └─ otherCoststring其他費用 ( 除手續費、交易稅外的費用項目 (資/券利息也包含在內) )
  └─ isAdjustablestring是否可調整成本:Y開放、N不開放
  └─ securitiesIncomeTaxstring證券所得稅
  └─ healthInsuranceFeestring健康保險費
  └─ unrealizedProfitLossstring未實現損益
  └─ referencePricestring參考價格
  └─ ioFlagstring異動代碼
  └─ ioNamestring異動名稱
  └─ breakEvenPricestring損益兩平價格
  └─ dividendAmountstring股利金額
  └─ guaranteeDefaultAmountstring擔保金缺額

請求範例

sdk.accounting.inventories(accounts)

回傳範例

{
no: "合計", // 序號 (string)
prevDayQuantity: "26796", // 昨日庫存股數 (string)
currentQuantity: "26796", // 即時庫存股數 (string)
todayQuantity: "0", // 今日增減成交股數 (string)
todayBuyQuantity: "0", // 今日買進成交數量 (string)
todaySellQuantity: "0", // 今日賣出成交數量 (string)
cost: "348817", // 付出成本 (string)
marketValue: "549957", // 現值 (string)
unrealizedProfitLoss: "198916", // 未實現損益 (string)
unrealizedProfitLossRate: "57.03%", // 未實現損益率 (string)
securitiesTransactionIncomeTax: "0", // 證券交易所得稅 (string)
healthInsuranceFee: "0", // 健保補充費 (string)
fee: "489", // 手續費 (string)
tax: "0", // 交易稅 (string)
openMarginAmount: "0", // 未償還融資/券金額 (string)
openGuaranteeAmount: "0", // 未償還融券保證金 (string)
openShortCollateral: "0", // 未償還擔保品 (string)
shortSellingFee: "0", // 融券手續費 (string)
ownFundsAmount: "0", // 自備款 (string)
otherCost: "0", // 其他費用 (string)
interest: "0", // 利息 (string)
unrealizedNetAmount: "547733", // 預估淨收付 (string)
totalProfitLoss: "198916.00", // 總損益 (string)
realizedProfitLoss: "0", // 當日已實現損益 (string)
dividendAmount: "360.00", // 除息金額 (string)
AccountSummary {
marginPositionMarketValueSum: "0", // 融資市值加總 (string)
shortPositionMarketValueSum: "0", // 融券市值加總 (string)
shortCollateralSum: "0", // 融券擔保品加總 (string)
marginLimit: "0", // 融資限額 (string)
shortLimit: "0", // 融券限額 (string)
guaranteeAmountSum: "0", // 擔保金總和 (string)
marginAmountSum: "0", // 融資金額總和 (string)
shortAmountSum: "0", // 融券金額總和 (string)
accountMaintenanceRate: "0%", // 帳戶維持率 (string)
settlementToday: "0", // 今日交割 (string)
settlementYesterday: "0", // 昨日交割 (string)
settlementNet: "0", // 淨交割金額 (string)
},
positionSummaries: [
{
branchId: "5920", // 分公司代號 (string)
custId: "1234567", // 帳號 (string)
no: "1", // 序號 (string)
symbol: "00885", // 股票代碼 (string)
name: "許OO", // 用戶名 (string)
symbolName: "富邦越南", // 股票名稱 (string)
stockEvaluation: "", // 股票評價 (string)
orderType: "0", // 交易類型 (string)
orderTypeName: "現買", // 交易類型名稱 (string)
buySell: "B", // 買賣別 (string)
prevDayQuantity: "1000", // 昨日庫存股數 (string)
currentQuantity: "1000", // 即時庫存股數 (string)
totalQuantity: "0", // 今日交易增減成交股數 (string)
totalBuyQuantity: "0", // 今日買進成交股數 (string)
totalSellQuantity: "0", // 今日賣出成交股數 (string)
cost: "16173", // 成本 (string)
costBeforeDividend: "16173.00", // 成本 (不扣除息金額) (string)
averagePrice: "16.17", // 成交均價 (string)
openMarginAmount: "0", // 未償還融資金額 (string)
guaranteeAmount: "0", // 保證金 (string)
openGuaranteeAmount: "0", // 未償還融券保證金 (string)
shortCollateral: "0", // 擔保品 (string)
openShortCollateral: "0", // 未償還擔保品 (string)
shortSellingFee: "0", // 融券手續費 (string)
ownFundsAmount: "0", // 自備款 (string)
guaranteeDefaultAmount: "0", // 擔保金缺額 (string)
currentPrice: "11.7", // 現價 (string)
marketValue: "11700", // 市值 (string)
unrealizedProfit: null, // 未實現損益 (null)
unrealizedProfitLossRate: "-27.85%", // 未實現損益率 (string)
fee: "23", // 手續費 (string)
tax: "0", // 稅金 (string)
interest: "0", // 利息 (string)
otherCost: "0", // 其他成本 (string)
unrealizedNetAmount: "11669", // 預估淨收付金額 (string)
targetPrice: "0", // 標的股票現價 (string)
portfolioType: "", // 權證種類 (string)
holdingPercent: "2.13%", // 持有比率 (string)
securitiesIncomeTax: "0", // 證券所得稅 (string)
healthInsuranceFee: "0", // 健保補充費 (string)
referencePrice: "0", // 參考價格 (string)
totalProfit: "-4504.00", // 總損益 (string)
realizedProfit: "0", // 當日已實現損益 (string)
pledgeQuantity: "1000", // 質押數量 (string)
amount: "16150.00", // 會總成交價金 (string)
averageFilledPrice: "16.15", // 平均成交價格 (string)
breakEvenPrice: "16.22", // 損益兩平價格 (string)
dividendAmount: "0", // 股利金額 (string)
positionDetails: [
{
no: "1", // 序號 (string)
tDate: "20210419", // 成交日期 (string)
orderType: "0", // 交易類型 (string)
orderTypeName: "現買", // 訂單類型名稱 (string)
buySell: "B", // 買賣別 (string)
orderNo: "i0317", // 委託書號 (string)
filledNo: "0000001", // 成交序號 (string)
filledQuantity: "1000", // 成交數量 (string)
prevDayQuantity: "1000", // 昨日庫存股數 (string)
filledPrice: "16.15", // 成交價格 (string)
filledAmount: "16150.00", // 成交金額 (string)
currentPrice: "11.7", // 現價 (string)
marketValue: "11700", // 市值 (string)
marginAmount: "0", // 融資金額 (string)
openMarginAmount: "0", // 未償還融資/券金額 (string)
shortCollateral: "0", // 融券抵押品 (string)
openShortCollateral: "0", // 未償還擔保品 (string)
guaranteeAmount: "0", // 保證金 (string)
openGuaranteeAmount: "0", // 未償還融券保證金 (string)
securitiesLendingFee: "0", // 標借費 (string)
shortSellingFee: "0", // 融券費手續費 (string)
fee: "23", // 手續費 (string)
tax: "0", // 交易稅 (string)
interest: "0", // 利息 (string)
cost: "16173", // 收付金額 (string)
costBeforeDividend: "16173",// 收付金額(不扣除息金額) (string)
changeType: "0", // 異動別 (string)
ownFundsAmount: "0", // 自備款 (string)
portfolioType: "", // 權證種類 (string)
custId: "1234567", // 帳號 (string)
name: "許OO", // 名稱 (string)
branchId: "5920", // 分行 ID (string)
otherCost: "0", // 其他成本 (string)
isAdjusted: null, // 是否可調整 (null)
securitiesIncomeTax: "0", // 證券所得稅 (string)
healthInsuranceFee: "0", // 健康保險費 (string)
unrealizedProfitLoss: "-4504", // 未實現損益 (string)
unrealizedProfitLossRate: null, // 未實現損益率 (null)
referencePrice: "0", // 參考價格 (string)
ioFlag: "", // 異動代碼 (string)
ioName: "", // 異動名稱 (string)
breakEvenPrice: "16.22", // 損益兩平價格 (string)
dividendAmount: "0", // 股利金額 (string)
guaranteeDefaultAmount: "0" // 擔保金缺額 (string)
},
],
},
...
]
}