Skip to main content

股票匯撥申請

TransferStock

版本資訊

v2.2.9 起新增功能

使用限制
  • 申請服務時段為交易日 08:00 ~ 14:30,時段外送出會被後端拒絕。
  • 送出後無法透過 API 取消。
  • 結果以本方法回傳的 status10 成功、90 失敗)為準;匯撥紀錄查詢不會立即反映該筆申請。
  • 完整作業特性見圈存與匯撥
撥入分公司代號(targetBranchNo)怎麼查?

請填入撥入證券分公司的集保代號,不是銀行分行代碼或自行編列的內部代號。

  1. 先到 券商總覽查詢 確認券商資訊。
  2. 撥入富邦證券分公司時,再以 富邦分公司代號明細 確認實際分公司代號。
  3. 將查得的代號依原格式填入(例如 960C),包含英數字母。

輸入參數

參數類別說明
accountAccount帳號(撥出方)
targetBranchNostring撥入證券分公司集保代號
targetAccountstring撥入方帳號
stockNostring股票代號
quantityint匯撥股數,單位為股,須大於 0
marketMarket (optional)市場別 : Taiex 上市 、 Taisdaq 上櫃 、 Taiemg 興櫃。未帶入時由 SDK 自動判別

Result 回傳

參數類別說明
isSuccessbool是否成功
dataTransferRecord回傳匯撥申請資訊
messagestring當isSuccess = False 回傳錯誤訊息

匯撥紀錄 TransferRecord 欄位

Return type : Object

參數類別說明
seqNostring委託單流水序號
datestring申請日期
timestring申請時間
stockNostring股票代號
marketMarket市場別 : Taiex 上市 、 Taisdaq 上櫃 、 Taiemg 興櫃
quantityint匯撥股數(股)
targetBranchNostring撥入證券分公司集保代號
targetAccountstring撥入方帳號
statusint狀態碼 : 10 成功 、 90 失敗

請求範例

sdk.Stock.TransferStock(account, "960C", "7654321", "006205", 2000)

回傳範例

{
isSuccess = True,
message = ,
data = TransferRecord{
date = 2026/07/28, // 申請日期 (string)
time = 10:53:48.340, // 申請時間 (string)
seqNo = 418181, // 委託單流水序號 (string)
stockNo = 006205, // 股票代號 (string)
market = Taiex, // 市場別 (Market)
quantity = 2000, // 匯撥股數 (int)
targetBranchNo = 960C, // 撥入證券分公司集保代號 (string)
targetAccount = 7654321, // 撥入方帳號 (string)
status = 10, // 狀態碼 (int)
}
}