Skip to main content

API Key Login

apikeyLogin

Version Info.

Available since v2.2.7

For more information, please refer to API Key Introduction

Input Parameters

ParameterTypeMeaning
personalIDStringLogin ID
keyStringAPI Key
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.apikeyLogin("Your ID", "Your Key","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)
}
}