Login
login
Input Parameters
| Parameter | Type | Description |
|---|---|---|
| personalID | String | Login ID |
| password | String | Login password |
| certPath | String | Certificate path |
| certPass | String | Certificate password |
Result Response
| Parameter | Type | Description |
|---|---|---|
| isSuccess | bool | Whether the login was successful |
| data | List | Returned account information |
| message | string | Error message when isSuccess = False |
Account Information Fields
Return type: Object
| Parameter | Type | Description |
|---|---|---|
| name | String | Customer name |
| account | String | Customer account number |
| branchNo | String | Branch code |
| accountType | string | Account 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)
}
]
}