Skip to main content

API Key Login

apikey_login

Version Info.

Available since v2.2.7

For more information, please refer to API Key Introduction

Input Parameters

ParameterTypeMeaning
personal_idStringLogin ID
KeyStringAPI Key
cert_pathStringCertification Path
cert_passStringCertification password

Result

ParameterTypeMeaning
is_successboolWhether successful
dataListAccount list is returned
messagestringError message returned when is_success = false

Account Parameter

Return type : Object

ParameterTypeMeaning
nameStringAccount Name
accountStringAccount Number
branch_noStringBranch Number
account_typeStringAccount 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)
}
}