class Order
Parents
object
Brief
The class provides access to order information
| Public Methods | |
|---|---|
| Order | A constructor |
| getOrderId | Gets the unique identification number of the order |
| getRequestId | Gets the identifier of the request to create the order |
| getRate | Gets the price at which the order is placed |
| getExecutionRate | Gets the price the order is executed at |
| getRateMin | Gets the minimum price at which the order can be filled |
| getRateMax | Gets the maximum price at which the order can be filled |
| getTradeId | Gets the unique identification number of the position to be opened/closed by the order |
| getAccountId | Gets the unique identification number of the account the order is placed on |
| getAccountName | Gets the unique name of the account on which the order is placed |
| getOfferId | Gets the unique identification number of the instrument offer the order is placed for |
| getNetQuantity | Gets the Net Amount order flag |
| getBuySell | Gets the trade operation of the order |
| getStage | Gets the order action: O - open a position, C - close a position |
| getType | Gets the type of the order |
| getStatus | Gets the status of the order |
| getStatusTime | Gets the date and time of the last update of the order state |
| getAmount | Gets the amount of the order |
| getLifetime | Gets the time, during which the trader must accept or reject the order requoted by the dealer |
| getAtMarket | Gets the distance in pips from the current market price within which the trader allows the order to be executed |
| getTrailStep | Gets the number of pips the market should move before the order moves the same number of pips after it |
| getTrailRate | Gets the market price at the time the order automatically moves following the market fluctuations |
| getTimeInForce | Gets the time-in-force option of the order |
| getAccountKind | Gets the type of the account the order is placed from |
| getRequestTxt | Gets the custom identifier of the order |
| getContingentOrderID | Gets the unique identifier of an existing contingency group which the order is linked to |
| getContingencyType | Gets the type of the contingent order which the order is linked to |
| getPrimaryId | Gets the unique identification number of the primary order of the ELS or OTO contingent orders to which the order is linked |
| getOriginAmount | Gets the original amount of the order when it was placed |
| getFilledAmount | Gets the amount of the last order portion filled |
| getWorkingIndicator | Checks whether the order is active on the market or not, applicable only to secondary orders of ELS and OTO orders |
| getPegType | Gets the price used to calculate the pegged order price: O - open price, M - close price. Applicable only to stop/limit orders and secondary orders of ELS orders |
| getPegOffset | Gets the offset to the pegged price |
| getPegOffsetMin | Gets the minimum allowed offset to the pegged price |
| getPegOffsetMax | Gets the maximum allowed offset to the pegged price |
| getExpireDate | Gets the expiration date and time of the order, applicable only to orders with the DAY or GTD time-in-force option |
| getValueDate | Gets the simulated delivery date when the position can be automatically closed, applicable only to orders placed from accounts with the day netting trading mode |
| getParties | Gets the unique identifier of the environment that was used to place the order |
| getSide | Gets the side of the stop/limit order price: 1 - above the current market price, -1 - below the current market price |
| getStop | Gets the price of the stop order attached to the entry order if there is one |
| getLimit | Gets the price of the limit order attached to the entry order if there is one |
| getStopOrderId | Gets the unique identification number of the stop order attached to the entry order if there is one |
| getLimitOrderId | Gets the unique identification number of the limit order attached to the entry order if there is one |
| getTypeStop | Gets the rate type of the stop order |
| getTypeLimit | Gets the rate type of the limit order |
| getStopTrailStep | Gets the number of pips the market should move before the order moves the same number of pips after it |
| getStopTrailRate | Gets the market price at the time the order automatically moves following the market fluctuations |
| getStopMove | Gets the pips left until the stop is moved |