public property TradeDeskAut.FIX_OPEN

Brief

Creates Immediate Open order in the TradeDeskAut.CreateFixOrder3 and OrdersBatchAut.CreateFixOrder methods.

Declaration
Visual Basic
FIX_OPEN As Integer
IDL
[propget] HRESULT FIX_OPEN( [out, retval] long* retVal)

Parameters
iFixOrderKind

The kind of the order.

The value must equal TradeDeskAut.FIX_OPEN

sTradeID

The parameter is not used.

dRate

The rate at which it is desired to open the trade. The rate must be taken from the offers table.

dRate1

The parameter is not used.

sQuoteID

The identifier of the quote the rate value is taken from. The value can be obtained from the QuoteID column of the offers table. In case the empty string is specified, the current offer id of the specified instrument will be used.

sAccountID

The identifier of the account. The account must exist in the accounts table. Use the AccountID column to get the identifier of the account.

sInstrument

The instrument the trade must be opened in. The value must be one of the values of the Instrument column of the offers table. The offers of the instrument must be subscribed.

bBuySell

The flag indicating whether the trade must be opened using the buy order (True, long position) or sell order (False, short position).

iAmount

The amount of the order.

Please note that limitations on the amount might be applicable:



All these limitations except BaseUnitSize can be zero. Zero value means that the limitation for that specific parameter is not applied at all.

sRemark

The custom text to written into the QTXT column of the order. The parameter can be an empty string ("").

iRateFlag

The parameter is not used.

iTrailMinMove

The parameter is not used.

iTIFType

The Time In Force option.
The parameter must have one of the following values:

TradeDeskAut.TIF_FOK

Use this value in case the FOK order must be created.

TradeDeskAut.TIF_IOC

Use this value in case the IOC order must be created.

Details

See also FIX Order Types for more details.

The FIX_OPEN property is defined in the TradeDeskAut class.

back