public property TradeDeskAut.FIX_CLOSEMARKET

Brief

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

Does not work for United States based accounts. Please read NFA Compliance Rule 2-43(b). In case if this function is used Order2Go API will throw an Exception/Error.

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

Parameters
iFixOrderKind

The kind of the order.

The value must equal TradeDeskAut.FIX_CLOSEMARKET

sTradeID

The unique identifier of the trade to be closed. The trade must exist in the trades table. The value can be obtained from the TradeID column of the table.

dRate

The parameter is not used.

dRate1

The parameter is not used.

sQuoteID

The parameter is not used.

sAccountID

The parameter is not used.

sInstrument

The parameter is not used.

bBuySell

The parameter is not used.

iAmount

The amount which it is desired to close.

The amount must be equal to or greater than and must be divisible by the BaseUnitSize value.

The BaseUnitSize value can be retrieved using TradingSettingsProviderAut.GetBaseUnitSize.

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_GTC

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

TradeDeskAut.TIF_IOC

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

TradeDeskAut.TIF_FOK

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

TradeDeskAut.TIF_DAY

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

Details

See also FIX Order Types for more details.

The FIX_CLOSEMARKET property is defined in the TradeDeskAut class.

back