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