Login
login
Request Parameter
Parameter | Type | Meaning |
---|---|---|
personal_id | String | Login ID |
password | String | Login Password |
cert_path | String | Certification Path |
cert_pass | String | Certification password |
Result Response
Parameter | Type | Meaning |
---|---|---|
is_success | bool | Interface result |
data | List | Account list is returned |
message | string | is_success = False error description is returned |
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 |
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)
}
}