Skip to main content

API Key Login

apikey_login

Version Info

New feature added in v2.2.7

Input Parameters

ParameterTypeDescription
personalIDStringLogin ID
keyStringApplied API Key
certPathStringCertificate path
certPassStringCertificate password

Result Response

ParameterTypeDescription
isSuccessboolWhether the login was successful
dataListReturned account information
messagestringError message when isSuccess = False

Account Information Fields

Return type: Object

ParameterTypeDescription
nameStringCustomer name
accountStringCustomer account number
branchNoStringBranch code
accountTypestringAccount 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
{
isSuccess = true,
message = ,
data = [
Account{
name = Fubon Bill, // Customer name (string)
account = 28, // Customer account number (string)
branchNo = 6460, // Branch code (string)
accountType = stock // Account type (string)
}
]
}