Skip to main content

Login

login

Input Parameters

ParameterTypeDescription
personalIDStringLogin ID
passwordStringLogin password
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->login("PersonalID", "Password", "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)
}
]
}