API Key Login
apikeyLogin
Version Info.
Available since v2.2.7
For more information, please refer to API Key Introduction
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| personalID | String | Login ID |
| key | String | API Key |
| certPath | String | Certification Path |
| certPass | String | Certification password |
Result
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Whether successful |
| data | Object | Account list is returned |
| message | string ? (optional) | Error message returned when isSuccess = false |
Account Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| name | String | Account Name |
| account | String | Account Number |
| branchNo | String | Branch Number |
| accountType | String | Account 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)
}
}