SubscriptionsDeal

Triggered by: DealsSubscribe.

Switched off by: DealsUnsubscribe.

Response Type - SubscriptionsOrder.

Response Body Fields:

Parameter
Always returned
Description

deal

the ticket of a deal

order

the ticket of an order

position

the position ID (ticket) specified in the orde

is_entry

true is deal is entering to the market

price

the price at which the deal was executed

volume

the volume of an order in lots

symbol

the symbol, for which the deal was executed

action

the action state for the order

profit

profit for the deal

The parameter action can be:

Value
Description

1

add

2

update

3

delete

Example:

{
    "type": "SubscriptionsDeal",
    "body": {
        "deal": 36602,
        "order": 36600,
        "position": 36600,
        "type": 0,
        "is_entry": true,
        "volume": 0.1,
        "price": 1.055070,
        "profit": 0.000000,
        "symbol": "EURUSD",
        "action": 1
    }
}

Last updated