SubscriptionsOrder

Triggered by: OrdersSubscribe.

Switched off by: OrdersUnsubscribe.

Response Type - SubscriptionsOrder.

Response Body Fields:

Parameter
Always returned
Description

order

the ticket of an order

position

the position ID (ticket) specified in the orde

price

the price at which the order was placed

price_current

the current price of symbol

price_trigger

the price of order actiovation

tp

price of take profit

sl

price of stop loss

volume

the volume of an order in lots

type

the order type

symbol

the symbol, for which the order was placed

action

the action state for the order

state

the order state

The parameter type can be:

Value
Description

0

for buy

1

for sell

2

a Buy Limit order

3

a Sell Limit order

4

a Buy Stop order

5

a Sell Stop order

6

a Buy Stop Limit

7

a Sell Stop Limit order

The parameter action can be:

Value
Description

1

add

2

updated

3

deleted

The parameter state can be:

Value
Description
Comment

0

Started

the order correctness has been checked, and now the order is awaiting processing

1

Placed

for pending orders, this state means that the order has been accepted and placed. For market orders, this state is only used when forwarding operations to an external system. In this case, this state means that the order has been forwarded and is awaiting execution in the external system

2

Canceled

the order has been canceled by the client

3

Partially filled

the order has been partially filled, so the market operation has been executed for part of the initially requested volume

4

Filled

the order has been filled in full

5

Rejected

the order has been rejected by the broker

6

Expired

the order has been canceled upon expiration

7

The order passed (by the gateway) to be placed. This state is used for notifying that a request for placing the order is being already processed

8

The order passed (by the gateway) to be modified. This state is used for notifying that a request for modifying the order is being already processed

9

The order passed (by the gateway) to be deleted. This state is used for notifying that a request for deleting the order is being already processed

Example:

Last updated