Skip to main content

Login

login

Request Parameter

ParameterTypeMeaning
personalIdStringLogin ID
passwordStringLogin Password
certPathStringCertification Path
certPassStringCertification password

Result Response

ParameterTypeMeaning
isSuccessboolInterface result
dataObjectAccount list is returned
messagestring ? (optional)isSuccess = False error description is returned

Account Parameter

Return type : Object

ParameterTypeMeaning
nameStringAccount Name
accountStringAccount Number
branchNoStringBranch Number
accountTypeStringAccount Type: value in stock and futopt

Request Example

const { FubonSDK, BSAction, TimeInForce, OrderType, PriceType, MarketType } = require('fubon-neo');

const sdk = new FubonSDK();

const accounts = sdk.login("Your ID", "Your Password","Your Cert Path","Your Cert Password");

Console.log(accounts);

Response Example

{
isSuccess: true,
data:{
name: '富邦Bill', // Account Name (string)
account: '28', // Account Number (string)
branchNo: '6460', // Branch Number (string)
accountType: 'stock' // Account Type (string)
}
}