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