GetPosition

GetPosition - getting a trading position by ticket.

Request Body Fields:

Parameter
Required
Type
Description

ticket

unsigned long long

position ticket

Responce Type - Position

Responce Body Fields:

Parameter
Always returned
Type
Description

ticket

unsigned long long

the ticket of new opened order on Meta Trader Server

position_id

string

position identifier

price

double

price of order execution, in case of pending, limit, stop orders price is 0

volume

double

the volume of a deal in lots

type

boolean

the order type, can 0 - for buy and 1 for sell

symbol

string

the symbol, for which the deal was executed

comment

string

a comment to a deal

sl

double

the Stop Loss level of a trade

tp

double

the Take Profit level of a trade

commission

double

the commision

swap

double

the swap value of a trade in the trading account currency

profit

double

current profit/loss of a trade in the trading account currency

margin_rate

double

the exchange rate of the margin currency of a trade to the trading account currency

state

double

the current state of a trade (always 0)

time_created

int64

creation time in milliseconds in UTC

time_updated

int64

update time in milliseconds in UTC

Example:

Last updated