getToFixedOfAccount (SDK Trading)

getToFixedOfAccount is a Fintechee API to get the tofixed value of the specific account to round numbers.

getToFixedOfAccount(account) ⇒ string

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

Kind: global function
Returns: string - tofixed to round numbers.

Param Type Description
account object specific account

getToFixedOfAccount (SDK Trading)

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