API Key Login
apikey_login
Version Info.
Available since v2.2.7
For more information, please refer to API Key Introduction
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| personal_id | String | Login ID |
| Key | String | API Key |
| 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.apikey_login("Your ID", "Your KEY","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)
}
}