getBalanceOfAccount (SDK Trading)

getBalanceOfAccount is a Fintechee API to get the balance of the specific account.

getBalanceOfAccount(account) ⇒ string

EA SDK This function gets the balance of the specific account. Phase (this API's scope): onTick | deinit

Kind: global function
Returns: string - balance.

Param Type Description
account object specific account

getBalanceOfAccount (SDK Trading)

registerEA(
"test_api",
"An EA to test APIs",
[],
function (context) { // Init()
},
function (context) { // Deinit()
},
function (context) { // OnTick()
    var account = getAccount(context, 0)
    var balance = getBalanceOfAccount(account)
})