getBrokerNameOfAccount (SDK Trading)

getBrokerNameOfAccount is a Fintechee API to get the broker name of the specific account.

getBrokerNameOfAccount(account) ⇒ string

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

Kind: global function
Returns: string - broker name.

Param Type Description
account object specific account

getBrokerNameOfAccount (SDK Trading)

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