public method TradeDeskAut.CreateFixOrder3, CreateFixOrder3Async

Brief

Creates a FIX order.

Declaration
Visual Basic
Sub CreateFixOrder3 (iFixOrderKind as Integer, sTradeID as String, dRate as Double, dRate1 as Double, sQuoteID as String, sAccountID as String, sInstrument as String, bBuySell as Boolean, iAmount as Integer, sRemark as String, iRateFlag as Integer, iTrailMinMove as Integer, iTIFType as Integer, ByRef psOrderId as Variant, ByRef psDI as Variant)
IDL
[id(403)] HRESULT CreateFixOrder3( [in]long iFixOrderKind, [in]BSTR sTradeID, [in]double dRate, [in]double dRate1, [in]BSTR sQuoteID, [in]BSTR sAccountID, [in]BSTR sInstrument, [in]VARIANT_BOOL bBuySell, [in]int iAmount, [in]BSTR sRemark, [in]int iRateFlag, [in]int iTrailMinMove, [in]int iTIFType, [out]VARIANT* psOrderId, [out]VARIANT *psDI)
Visual Basic
Sub CreateFixOrder3Async (iFixOrderKind as Integer, sTradeID as String, dRate as Double, dRate1 as Double, sQuoteID as String, sAccountID as String, sInstrument as String, bBuySell as Boolean, iAmount as Integer, sRemark as String, iRateFlag as Integer, iTrailMinMove as Integer, iTIFType as Integer, ByRef psRequestId as Variant)
IDL
[id(404)] HRESULT CreateFixOrder3Async( [in]long iFixOrderKind, [in]BSTR sTradeID, [in]double dRate, [in]double dRate1, [in]BSTR sQuoteID, [in]BSTR sAccountID, [in]BSTR sInstrument, [in]VARIANT_BOOL bBuySell, [in]int iAmount, [in]BSTR sRemark, [in]int iRateFlag, [in]int iTrailMinMove, [in]int iTIFType, [out]VARIANT *psRequestId)

Parameters
iFixOrderKind

The kind of the order. Please see FIX order types for the detailed description.

NOTE: FIX orders for operations: close/stop/limit will not work for United States based accounts. NFA Compliance Rule 2-43(b)

Please read: OCO Alternative For Stops/Limits.

Please read: How to close positions on United States based (FIFO) accounts.

The parameter can take one of the following values.

TradeDeskAut.FIX_OPEN

Creates Immediate Open order.

TradeDeskAut.FIX_OPENRANGE

Creates Immediate Open Range order.

TradeDeskAut.FIX_OPENMARKET

Creates Immediate Open Market order.

TradeDeskAut.FIX_OPENLIMIT

Creates Immediate Open Limit order.

TradeDeskAut.FIX_CLOSE

Creates Immediate Close order.

TradeDeskAut.FIX_CLOSERANGE

Creates Immediate Close Range order.

TradeDeskAut.FIX_CLOSELIMIT

Creates Immediate Close Limit order.

TradeDeskAut.FIX_CLOSEMARKET

Creates Immediate Close Market order.

TradeDeskAut.FIX_ENTRYLIMIT

Creates Entry Limit order.

TradeDeskAut.FIX_ENTRYSTOP

Creates Entry Stop order.

TradeDeskAut.FIX_STOP

Creates Stop order.

TradeDeskAut.FIX_LIMIT

Creates Limit order.

TradeDeskAut.FIX_OPENREQUOTE

Accepts a previously requoted open order.

TradeDeskAut.FIX_CLOSEREQUOTE

Accepts a previously requoted close order.

psOrderId / psRequestId

[output] The parameter gets the identifier of the created order.

Use the GetTradeByOrder method to get the trade created by the immediate or entry orders.

For FIX_OPENREQUOTE/FIX_CLOSEREQUOTE the parameter gets the identifier of the created trade.

If order is rejected, the returned value will be an empty string.

For CreateFixOrder3 this parameter will return OrderID.
For CreateFixOrder3Async this parameter will return RequestID.

psDI

[output] Returns "Y" if the order execution is delayed because of the dealer intervention. See the order statuses for more details about the dealer intervention. This value can be returned on the dealing desk systems only. NOTE: Only for CreateFixOrder3 method. See declaration above.

Details

The CreateFixOrder3 and CreateFixOrder3Async methods are defined in the TradeDeskAut class.

Other parameters of the method depends on the kind of the order. Please follow the links to the order kind to read about the parameters. The parameter which aren't required for the particular order must be filled with zero (for numeric parameters) or with empty string ("") for the string parameters.

Unlike the CreateFixOrder and CreateFixOrder2/CreateFixOrder2Async methods the CreateFixOrder3/CreateFixOrder3Async methods allow you to:

back