getOpenTradesListLength (SDK Trading)
getOpenTradesListLength is a Fintechee API to get the length of the open trades that have been executed but not been closed.
number
getOpenTradesListLength(context) ⇒ EA SDK This function gets the length of open trades list. Phase (this API's scope): onTick | deinit
Kind: global function
Returns: number
- the length of open trades list.
Param | Type | Description |
---|---|---|
context | object | the name should be the same with the name of parameter of onTickFunction |
getOpenTradesListLength (SDK Trading)
registerEA(
"test_api",
"An EA to test APIs",
[],
function (context) { // Init()
},
function (context) { // Deinit()
},
function (context) { // OnTick()
var length = getOpenTradesListLength(context)
})