public method TradeDeskAut.ChangeEntryOrder, ChangeEntryOrderAsync

Brief

Changes a rate, amount and trailing of an entry order.

Declaration
Visual Basic
Sub ChangeEntryOrder (sOrderID as String, iAmount as Integer, dRate as Double, iTrailMinMove as Integer)
IDL
HRESULT ChangeEntryOrder( [in]BSTR sOrderID, [in]int iAmount, [in]double dRate, [in]int iTrailMinMove)
Visual Basic
Sub ChangeEntryOrderAsync (sOrderID as String, iAmount as Integer, dRate as Double, iTrailMinMove as Integer, ByRef psRequestId as Variant)
IDL
HRESULT ChangeEntryOrderAsync( [in]BSTR sOrderID, [in]int iAmount, [in]double dRate, [in]int iTrailMinMove, [out]VARIANT *psRequestId)

Parameters
sOrderID

The identifier of the entry order.

iAmount

The new amount of the order. In case the amount must not be changed, specify 0 in this parameter.

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 current trailing mode must not be changed, specify -1 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.

psRequestId

[output] Returns the request identifier.
For ChangeEntryOrder this parameter is not used. See declaration above.
For ChangeEntryOrderAsync this parameter will return RequestID.

Details

The ChangeEntryOrder and ChangeEntryOrderAsync methods are defined in the TradeDeskAut class.

back