getAccountIdOfAccount (SDK Trading)
getBrokerNameOfAccount is a Fintechee API to get the account ID of the specific account.
string
getAccountIdOfAccount(account) ⇒ EA SDK This function gets the account ID of the specific account. Phase (this API's scope): init | onTick | deinit
Kind: global function
Returns: string
- account ID.
Param | Type | Description |
---|---|---|
account | object | specific account |
getAccountIdOfAccount (SDK Trading)
registerEA(
"test_api",
"An EA to test APIs",
[],
function (context) { // Init()
var account = getAccount(context, 0)
var accountId = getAccountIdOfAccount(account)
},
function (context) { // Deinit()
},
function (context) { // OnTick()
})