Order Information

GetAllFilledOrders

A collection of (partially) filled orders executed by the bot. Maximum size is 50 orders.

  • GetAllFilledOrders([ positionId ])

Returns a list of OrderContainer() objects. Sorted descending on close timestamp.

Return Type: Dynamic

GetAllOpenOrders

A collection of open orders executed by the bot.

  • GetAllOpenOrders([ positionId ])

Returns a list of OrderContainer() objects.

Return Type: Dynamic

GetOrderCancelledAmount

Calculates the cancelled amount if the order is completed/cancelled.

  • GetOrderCancelledAmount(orderId)

Returns the cancelled amount if the order is completed/cancelled.

Return Type: Number

GetOrderFilledAmount

Calculates the amount filled for a specific order.

  • GetOrderFilledAmount(orderId, [ afterFees ])

Returns the amount filled for a specific order.

Return Type: Number

GetOrderOpenTime

Calculates how long an order is or has been open in minutes.

  • GetOrderOpenTime(orderId, [ inSeconds ])

Returns the time the order is or has been open for in minutes.

Return Type: Number

OrderContainer

Gets all the information from an specific order.

  • OrderContainer(orderId)

Returns an array with order information.

Return Type: Dynamic

Last updated