public method TradeDeskAut.ChangeOrderRate2, ChangeOrderRate2Async

Brief

Changes the rate of the order and allows making the order trailing.

Declaration
Visual Basic
Sub ChangeOrderRate2 (sOrderID as String, dRate as Double, iTrailMinMove as Integer)
IDL
[id(420)] HRESULT ChangeOrderRate2( [in]BSTR sOrderID, [in]double dRate, [in]int iTrailMinMove)
Visual Basic
Sub ChangeOrderRate2Async (sOrderID as String, dRate as Double, iTrailMinMove as Integer, ByRef psRequestId as Variant)
IDL
[id(421)] HRESULT ChangeOrderRate2Async( [in]BSTR sOrderID, [in]double dRate, [in]int iTrailMinMove, [out]VARIANT *psRequestId)

Parameters
sOrderID

The identifier of the order.

dRate

The rate to be set.

iTrailMinMove

Controls the trailing order.

In case the order must not be a trailing order, specify 0 in this parameter.

In case the order must be a trailing order with a dynamic step, specify 1 in this parameter.

In case the order must be a trailing order with a fixed step, specify the size in pips of the market movement after which the order must be moved following the market. The value must be from the minimum to the maximum allowed value defined on the server. To check the values, use the methods of the TradingSettingsProviderAut interface.

Note that trailing orders can be not available on the server. To check whether trailing orders are available, use the methods of PermissionCheckerAut.

psReqestId

[output] Request identifier.
NOTE: Only for ChangeOrderRate2Async method. See declaration above.

Details

The ChangeOrderRate2 and ChangeOrderRate2Async methods are defined in the TradeDeskAut class.

back