Login
login
Request Parameter
Parameter | Type | Meaning |
---|---|---|
personalId | String | Login ID |
password | String | Login Password |
certPath | String | Certification Path |
certPass | String | Certification password |
Result Response
Parameter | Type | Meaning |
---|---|---|
isSuccess | bool | Interface result |
data | Object | Account list is returned |
message | string ? (optional) | isSuccess = False error description is returned |
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.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)
}
}