Skip to main content

Login

login

Input Parameters

ParameterTypeMeaning
personalIDStringLogin ID
passwordStringLogin Password
certPathStringCertification Path
certPassStringCertification password

Result

ParameterTypeMeaning
isSuccessboolWhether successful
dataObjectAccount list is returned
messagestring ? (optional)Error message returned when isSuccess = false

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', // Customer name (string)
account: '28', // Customer account (string)
branchNo: '6460', // Branch code (string)
accountType: 'stock' // Account type (string)
}
}