Skip to main content

Transfer Record Query

QueryTransfers

Version

Available in v2.2.9 and later.

Parameters

FieldTypeDescription
accountAccountAccount
start_datestring (optional)Query start date (YYYYMMDD). When omitted, the server default range is used
end_datestring (optional)Query end date (YYYYMMDD)
stock_nostring (optional)Stock symbol. When omitted, all symbols are queried

Result

FieldTypeDescription
is_successboolWhether the request succeeded
dataListList of transfer records; an empty list when no records exist
messagestringError message when is_success is false

Transfer record: TransferRecord fields

Return type : Object

FieldTypeDescription
seq_nostringSequence number
datestringApplication date
timestringApplication time
stock_nostringStock symbol
marketMarketMarket: TAIEX TWSE, TAISDAQ TPEx, TAIEMG Emerging
quantityintTransferred shares
target_branch_nostringReceiving branch code
target_accountstringReceiving account
statusintStatus: 10 success; 90 failure

Request example

auto transfers_response = sdk->stock->query_transfers(target_account, "20260701", "20260722", std::nullopt);


// Output using custom .cpp and .hpp helpers
if (!transfers_response.is_success) {
std::cout << "query transfers failed reason: "
<< (transfers_response.message.has_value() ? transfers_response.message.value() : "No message")
<< std::endl;
}
else {
if (transfers_response.data.has_value()) {
for (const auto& record : transfers_response.data.value()) {
std::cout << record << std::endl;
}
}
else {
std::cout << "Query transfers success but no data returned." << std::endl;
}
}

Response example

// Output using custom .cpp and .hpp helpers
[TransferRecord]
seq_no: 418181 // Sequence number (string)
date: 2026/07/28 // Application date (string)
time: 10:53:48.340 // Application time (string)
stock_no: 006205 // Stock symbol (string)
market: TAIEX // Market (Market)
quantity: 1000 // transferred shares (int)
target_branch_no: 960C // Receiving branch code (string)
target_account: 7654321 // Receiving account (string)
status: 10 // status (int)