Order Handeling

CancelAllOrders

Cancels all open orders.

Syntax: CancelAllOrders([ positionId ])

Return type: Void

Parameter NameParameter TypeRequiredSuggestions

positionId

String

False

Load

CancelOrder

Sends out a cancel order for the given order identifier.

Syntax: CancelOrder(orderId)

Return type: Void

Parameter NameParameter TypeRequiredSuggestions

orderId

String

True

Load

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

Parameter NameParameter TypeRequiredSuggestions

positionId

String

False

Load

IsAnyOrderOpen

Checks if there are any open orders.

Syntax: IsAnyOrderOpen([ positionId ])

Returns true if there are any open orders.

Return type: Boolean

Parameter NameParameter TypeRequiredSuggestions

positionId

String

False

Load

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

Parameter NameParameter TypeRequiredSuggestions

orderId

String

True

Load

IsOrderFilled

Checks if the given order is filled.

Syntax: IsOrderFilled(orderId)

Returns true if the given order is filled.

Return type: Boolean

Parameter NameParameter TypeRequiredSuggestions

orderId

String

True

Load

IsOrderOpen

Checks if the given order is still open.

Syntax: IsOrderOpen(orderId)

Returns true if the given order is still open.

Return type: Boolean

Parameter NameParameter TypeRequiredSuggestions

orderId

String

True

Load

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

Parameter NameParameter TypeRequiredSuggestions

orderId

String

True

Load

Last updated