Skip to main content

Login

login

Request Parameter

ParameterTypeMeaning
personal_idStringLogin ID
passwordStringLogin Password
cert_pathStringCertification Path
cert_passStringCertification password

Result Response

ParameterTypeMeaning
is_successboolInterface result
dataListAccount list is returned
messagestringis_success = False error description is returned

Account Parameter

Return type : Object

ParameterTypeMeaning
nameStringAccount Name
accountStringAccount Number
branch_noStringBranch Number
account_typeStringAccount Type: value in stock and futopt

Reqeust 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)

Response Example

Result {
is_success: True,
message: None,
data :
Account{
name: "富邦Bill", # Account Name (string)
account: "28", # Account Number (string)
branch_no: "6460", # Branch Number (string)
account_type: "stock" # Account Type (string)
}
}