getAccountsListLength (SDK Trading)
getAccountsListLength is a Fintechee API to get the length of the accounts that you have signed in.
number
getAccountsListLength(context) ⇒ EA SDK This function gets the length of the list of the accounts that have been signed in. Phase (this API's scope): init | onTick | deinit
Kind: global function
Returns: number
- the length of accounts list.
Param | Type | Description |
---|---|---|
context | object | the name should be the same with the name of parameter of initFunction or deinitFunction or onTickFunction |
getAccountsListLength (SDK Trading)
registerEA(
"test_api",
"An EA to test APIs",
[],
function (context) { // Init()
},
function (context) { // Deinit()
},
function (context) { // OnTick()
var length = getAccountsListLength(context)
})