Login
login
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| personal_id | String | Login ID |
| password | String | Login Password |
| cert_path | String | Certification Path |
| cert_pass | String | Certification password |
Result
| Parameter | Type | Meaning |
|---|---|---|
| is_success | bool | Whether successful |
| data | List | Account list is returned |
| message | string | Error message returned when is_success = false |
Account Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| name | String | Account Name |
| account | String | Account Number |
| branch_no | String | Branch Number |
| account_type | String | Account Type: value in stock and futopt |
Request Example
from fubon_neo.sdk import FubonSDK, Order
from fubon_neo.constant import TimeInForce, OrderType, PriceType, MarketType, BSAction
sdk = FubonSDK()
accounts = sdk.login("Your ID", "Your Password","Your Cert Path","Your Cert Password")
print(accounts) # Multiple entries are returned when the user has multiple accounts
Response Example
Result {
is_success: True,
message: None,
data : Account{
name : "富邦Bill", # Customer name (string)
account : "28", # Customer account (string)
branch_no : "6460", # Branch code (string)
account_type : "stock" # Account type (string)
}
}