Syntax
Public Overrides Function UpdateLimitOrder(ByVal LPOrderID As String, ByVal LOType As LimitOrderType, ByVal Amount As Double, ByVal LPSymbolName As String, ByVal LimitPrice As Double, ByVal LPAccountID As String, ByVal BOOrderID As String, ByVal BOAccountID As String, Optional ByVal SL As Double = 0, Optional ByVal TP As Double = 0) As TransResult
Description
This function used to update an entry order at LP side and return the object of type TransResult, if it return success result the bridge will expect calling MyBase.OrderState.LimitOrderUpdated, otherwise the bridge expects to call MyBase.OrderState.LimitOrderUpdatingFailed.
Parameters
Key | Description |
LPOrderID | Order number at LP side to be updated. Value of type String |
LOType | Entry order operation type Value of typeLimitOrderType |
Amount | Amount of lots, Value of type Double |
LPSymbolName | Entry order symbol name, Value of type String |
LimitPrice | Entry order price. Value of type Double |
LPAccountID | Account number at LP side. Value of type String |
BOOrderID | Order number at BackOffice side. Value of type String |
BOAccountID | Account number at BackOffice side. Value of type String |
SL | Stop lose value. Optional value of type Double |
TP | Take profit value. Optional value of type Double |
Remarks
Above parameters should be returned when you receive the server response for the order in calling MyBase.OrderState.LimitOrderUpdated orMyBase.OrderState.LimitOrderUpdatingFailed.
For more information check Update limit Order Cycle.
See Also