GetHistory
GetHistory - receipt of a closed trading order by ticket.
Request Body Fields:
from
u_int64
the beginning of the period for which you need to receive orders. The date is shown in ms since 01/01/1970
to
u_int64
the end of the period for which you need to receive orders. The date is shown in ms since 01/01/1970
Responce Type - History
Responce Body Fields:
ticket
int64
the ticket of a deal
position_id
int64
the position ID (ticket) specified in the deal
type
int64
the order type, can 0 - for buy and 1 for sell
price
double
the price at which the deal was executed
volume
double
the volume of a deal in lots
symbol
string
symbol for which a tick was receive
comment
string
a comment to a deal
sl
int64
the Stop Loss level of a trade
tp
int64
the Take Profit level of a trade
commission
int64
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
int64
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