Order Handling

CancelAllOrders

Cancels all open orders.

  • CancelAllOrders([ positionId ])

Return Type: Void

Parameter Name

Parameter Type

Required

Suggested

positionId

String

False

Load

CancelOrder

Sends out a cancel order for the given order identifier.

  • CancelOrder(orderId)

Return Type: Void

Parameter Name

Parameter Type

Required

Suggested

orderId

String

True

Load

IsAnyOrderFinished

Checks if there are any open orders completed/cancelled.

  • IsAnyOrderFinished([ positionId ])

Returns true if there are any open orders completed/cancelled.

Return Type: Boolean

Parameter Name

Parameter Type

Required

Suggested

positionId

String

False

Load

IsAnyOrderOpen

Checks if there are any open orders.

  • IsAnyOrderOpen([ positionId ])

Returns true if there are any open orders.

Return Type: Boolean

Parameter Name

Parameter Type

Required

Suggested

positionId

String

False

Load

IsOrderFilled

Checks if the given order is filled.

  • IsOrderFilled(orderId)

Returns true if the given order is filled.

Return Type: Boolean

Parameter Name

Parameter Type

Required

Suggested

orderId

String

True

Load

IsOrderOpen

Checks if the given order is still open.

  • IsOrderOpen(orderId)

Returns true if the given order is still open.

Return Type: Boolean

Parameter Name

Parameter Type

Required

Suggested

orderId

String

True

Load

Last updated