getLots (SDK Trading)

getLots is a Fintechee API to get the lots of the specific pending order.

getLots(pendingOrder) ⇒ number

EA SDK This function gets the volume lots(100000 units per lot) of the specific pending order. Phase (this API's scope): onTick | deinit

Kind: global function
Returns: number - volume lots(100000 units per lot).

Param Type Description
pendingOrder object specific pending order

getLots (SDK Trading)

registerEA(
"test_api",
"An EA to test APIs",
[],
function (context) { // Init()
},
function (context) { // Deinit()
},
function (context) { // OnTick()
    var length = getPendingOrdersListLength(context)
    for (var i = 0; i < length; i++) {
        var pendingOrder = getPendingOrder(context, i)
        if (pendingOrder != null) {
            var lots = getLots(pendingOrder)
        }
    }
})