Skip to main content

API Key Login

apikey_login

Version Info

New feature added in v2.2.7 (C++ requires v2.5.0 or later)

Input Parameters​

ParameterTypeDescription
personal_idStringLogin ID
api_keyStringApplied API Key
cert_pathStringCertificate path
cert_passString (optional)Certificate password

Result Response​

ParameterTypeDescription
is_successboolWhether the login was successful
dataListReturned account information
messagestringError message when is_success = False

Account Information Fields​

Return type: Object

ParameterTypeDescription
nameStringCustomer name
accountStringCustomer account number
branch_noStringBranch code
account_typestringAccount type: returns stock for securities, futopt for futures

Request Example​

std::shared_ptr<fubon::FubonSDK> sdk = std::make_shared<fubon::FubonSDK>();
fubon::LoginResponse res = sdk->apikey_login("PersonalID", "Key", "Cert Path", "Cert Password");

Response Example​

// Custom .cpp & .hpp Output
{
is_success = true,
message = ,
data = [
Account{
name = Fubon Bill, // Customer name (string)
account = 28, // Customer account number (string)
branch_no = 6460, // Branch code (string)
account_type = stock // Account type (string)
}
]
}