class IO2GOfferRow

Parents
IO2GRow

Brief

The class provides access to offer information.

Details

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

Method/Use

Prerequisites

IO2GOffersTableResponseReader.getRow

This method is used to get the initial offer information after a session with the trading server is established.
This method provides access to a single offer. If you want to receive information about multiple offers, call this method in a loop.

Depending on the trading server settings, the Offers 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 the offer information, use the returned value of the IO2GLoginRules.isTableLoadedByDefault method:

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

For details, see the example below.

IO2GTablesUpdatesReader.getOfferRow

This method is used to get offer information updates.
This method provides access to a single offer. If you need information about multiple offers, call this method in a loop.

To receive offer information updates, 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 Instrument, Bid and Ask prices [show]

The derived class is IO2GOfferTableRow.

Public Methods

columns

Gets the columns of the table.

getAsk

Gets the current market price an instrument can be bought at.

getAskTradable

Gets the usage of an ask price.

getBid

Gets the current market price an instrument can be sold at.

getBidTradable

Gets the usage of a bid price.

getBuyInterest

Gets the interest amount applied to the account balance for holding a one lot long (buy) position opened overnight.

getCell

Gets value of a table cell.

getContractCurrency

Gets the instrument base currency.

getContractMultiplier

Gets the contract multiplier for some CFD instruments only.

getDigits

Gets the instrument price precision.

getHigh

Gets the highest ask price (buy price) of an instrument for the current trading day.

getInstrument

Gets the symbol of an instrument.

getInstrumentType

Gets the type of an instrument.

getLow

Gets the lowest bid price (sell price) of an instrument for the current trading day.

getOfferID

Gets the unique identification number of an instrument.

getPointSize

Gets the size of one pip.

getQuoteID

Gets the unique identifier of the pair of prices (bid and ask) an instrument can be traded at.

getSellInterest

Gets the interest amount applied to the account balance for holding a one lot short (sell) position opened overnight.

getSubscriptionStatus

Gets the subscription status.

getTableType

Gets the type of the table.

getTime

Gets the date and time of the last update of the instrument.

getTradingStatus

Gets the trading status.

getValueDate

Gets the simulated delivery date.

getVolume

Gets a tick volume of the current minute.

isAskTradableValid

Gets the flag indicating whether the AskTradable field is valid or not.

isAskValid

Gets the flag indicating whether the Ask field is valid or not.

isBidTradableValid

Gets the flag indicating whether the BidTradable field is valid or not.

isBidValid

Gets the flag indicating whether the Bid field is valid or not.

isBuyInterestValid

Gets the flag indicating whether the BuyInterest field is valid or not.

isCellChanged

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

isContractCurrencyValid

Gets the flag indicating whether the ContractCurrency field is valid or not.

isContractMultiplierValid

Gets the flag indicating whether the ContractMultiplier field is valid or not.

isDigitsValid

Gets the flag indicating whether the Digits field is valid or not.

isHighValid

Gets the flag indicating whether the High field is valid or not.

isInstrumentTypeValid

Gets the flag indicating whether the InstrumentType field is valid or not.

isInstrumentValid

Gets the flag indicating whether the Instrument field is valid.

isLowValid

Gets the flag indicating whether the Low field is valid.

isOfferIDValid

Gets the flag indicating whether the OfferID field is valid.

isPointSizeValid

Gets the flag indicating whether the PointSize field is valid or not.

isQuoteIDValid

Gets the flag indicating whether the QuoteID field is valid.

isSellInterestValid

Gets the flag indicating whether the SellInterest field is valid or not.

isSubscriptionStatusValid

Gets the flag indicating whether the SubscriptionStatus field is valid or not.

isTimeValid

Gets the flag indicating whether the date and time of the last instument update is valid or not.

isTradingStatusValid

Gets the flag indicating whether the TradingStatus field is valid or not.

isValueDateValid

Gets the flag indicating whether the ValueDate field is valid or not.

isVolumeValid

Gets the flag indicating whether the Volume field is valid or not.

back