class IO2GOrderRow

Parents
IO2GRow

Brief

The class provides access to order information.

Details

An instance of the class can be obtained by the following methods:

Method/Use

Prerequisites

IO2GOrdersTableResponseReader.getRow

This method is used to get the initial order information after a session with the trading server is established.
This method provides access to a single order. If you have multiple orders, call this method in a loop.

Depending on the trading server settings, the Orders table may or may not be loaded by the server automatically during the login process.

To determine whether the table is loaded or not and what follow-up action is required to get closed position information, use the returned value of the IO2GLoginRules.isTableLoadedByDefault method:

Both methods use the IO2GResponse object of the O2GResponseType.GetOrders type.
You must parse this object by using the IO2GOrdersTableResponseReader object.

For details, see the example below.

IO2GTablesUpdatesReader.getOrderRow

This method is used to get the order information that is created or changed during the session lifetime.
This method provides access to a single order. To track multiple orders, call this method in a loop.

To receive information about orders, you must implement the IO2GResponseListener.onTablesUpdates method. The received IO2GResponse object is of the O2GResponseType.TablesUpdates type.
You must parse this object by using the IO2GTablesUpdatesReader object.

For details, see the example below.

Example

Get Order ID, Amount and BuySell information [show]

Public Methods

columns

Gets the columns of the table.

getAccountID

Gets the unique identification number of the account the order is placed on.

getAccountKind

Gets the type of the account the order is placed from.

getAccountName

Gets the unique name of the account the order is placed on.

getAmount

Gets the amount of the order.

getAtMarket

Gets the distance from the current market price within which the trader allows the order to be executed.

getBuySell

Gets the direction of the trade.

getCell

Gets value of a table cell.

getContingencyType

Gets the type of the contingent order to which the order is linked.

getContingentOrderID

Gets the unique identification number of the contingent order to which the order is linked.

getExecutionRate

Gets the price the order is executed at.

getExpireDate

Gets the expiration date and time of the order.

getFilledAmount

Gets the amount of the last order portion filled.

getLifetime

Gets the time during which the trader must accept or reject the order requoted by the dealer.

getNetQuantity

Gets the Net Amount order flag.

getOfferID

Gets the unique identification number of the instrument the order is placed for.

getOrderID

Gets the unique identification number of the order.

getOriginAmount

Gets the original amount of the order when it is placed.

getParties

Gets the unique identifier of the environment that is used to place the order.

getPegOffset

Gets the offset to the pegged price.

getPegType

Gets the price used to calculate the pegged order price.

getPrimaryID

Gets the unique identification number of the primary order of the ELS or OTO contingent orders to which the order is linked.

getRate

Gets the price the order is placed at.

getRateMax

Gets the maximum price at which the order can be filled.

getRateMin

Gets the minimum price at which the order can be filled.

getRequestID

Gets the identifier of the request to create an order.

getRequestTXT

Gets the custom identifier of the order.

getStage

Gets the order action.

getStatus

Gets the state of the order.

getStatusTime

Gets the date and time of the last update of the order state.

getTableType

Gets the type of the table.

getTimeInForce

Gets the time-in-force option of the order.

getTradeID

Gets the unique identification number of the position to be opened/closed by the order.

getTrailRate

Gets the market price at the time the order automatically moves following the market fluctuations.

getTrailStep

Gets the number of pips the market should move before the order moves the same number of pips after it.

getType

Gets the type of the order.

getValueDate

Gets the simulated delivery date.

getWorkingIndicator

Gets the working indicator flag.

isCellChanged

Gets a flag indicating whether the value of the cell is changed.

back