Order Handeling

CancelAllOrders

Cancels all open orders.

Syntax: CancelAllOrders([ positionId ])

Return type: Void

CancelOrder

Sends out a cancel order for the given order identifier.

Syntax: CancelOrder(orderId)

Return type: Void

IsAnyOrderFinished

Checks if there are any open orders completed/cancelled.

Syntax: IsAnyOrderFinished([ positionId ])

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

Return type: Boolean

IsAnyOrderOpen

Checks if there are any open orders.

Syntax: IsAnyOrderOpen([ positionId ])

Returns true if there are any open orders.

Return type: Boolean

IsBuyOrder

Checks if the given order is a buy order.

Syntax: IsBuyOrder(orderId)

Returns true if the given order is on buy side.

Return type: Boolean

IsOrderFilled

Checks if the given order is filled.

Syntax: IsOrderFilled(orderId)

Returns true if the given order is filled.

Return type: Boolean

IsOrderOpen

Checks if the given order is still open.

Syntax: IsOrderOpen(orderId)

Returns true if the given order is still open.

Return type: Boolean

IsSellOrder

Checks if the given order is a sell order.

Syntax: IsSellOrder(orderId)

Returns true if the given order is on sell side.

Return type: Boolean

Last updated