getPLOfAccount (SDK Trading)
getPLOfAccount is a Fintechee API to get the PL(profit or loss) of the specific account.
getPLOfAccount(account) ⇒ string
EA SDK This function gets the profit and loss statement of the specific account. Phase (this API's scope): onTick | deinit
Kind: global function
Returns: string - profit and loss statement.
| Param | Type | Description |
|---|---|---|
| account | object | specific account |
getPLOfAccount (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 pl = getPLOfAccount(account)
})