Skip to main content

API Key Login

apikeyLogin

Version Info.

Available since v2.2.7

For more information, please refer to API Key Introduction

Request Parameter

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