getMarginUsedOfAccount (SDK Trading)
getMarginUsedOfAccount is a Fintechee API to get the margin used of the specific account.
getMarginUsedOfAccount(account) ⇒ string
EA SDK This function gets the margin used of the specific account. Phase (this API's scope): onTick | deinit
Kind: global function
Returns: string - margin used.
| Param | Type | Description |
|---|---|---|
| account | object | specific account |
getMarginUsedOfAccount (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 marginUsed = getMarginUsedOfAccount(account)
})