class O2GOrderRow

Parents
O2GRow

Brief

The class provides access to order information.

Details

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

Method/Use

Prerequisites

O2GOrdersTableResponseReader.getRow

This method is used to get the initial 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 O2GLoginRules.isTableLoadedByDefault method:

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

For details, see the example below.

O2GTablesUpdatesReader.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 O2GResponse object is of the O2GResponseType.TablesUpdates type.
You must parse this object by using the O2GTablesUpdatesReader object.

For details, see the example below.

Example

Get Order ID, Amount and BuySell information [show]

The type defined in the fxcore2.dll assembly. The namespace is fxcore2.

Public Properties

AccountID

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

AccountKind

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

AccountName

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

Amount

Gets the amount of the order.

AtMarket

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

BuySell

Gets the direction of the trade.

Columns

The columns of the table.

ContingencyType

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

ContingentOrderID

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

ExecutionRate

Gets the price the order is executed at.

ExpireDate

Gets the expiration date and time of the order.

FilledAmount

Gets the amount of the last order portion filled.

Lifetime

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

NetQuantity

Gets the Net Amount order flag.

OfferID

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

OrderID

Gets the unique identification number of the order.

OriginAmount

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

Parties

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

PegOffset

Gets the offset to the pegged price.

PegType

Gets the price used to calculate the pegged order price.

PrimaryID

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

Rate

Gets the price the order is placed at.

RateMax

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

RateMin

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

RequestID

Gets the identifier of the request to create the order.

RequestTXT

Gets the custom identifier of the order.

Stage

Gets the order action.

Status

Gets the state of the order.

StatusTime

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

TableType

The type of the table.

TimeInForce

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

TradeID

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

TrailRate

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

TrailStep

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

Type

Gets the type of the order.

ValueDate

Gets the simulated delivery date.

WorkingIndicator

Gets the working indicator flag.

Public Methods

getCell

Gets a cell of the table.

isCellChanged

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

back