Syntax
Public Overrides Function ManualUpdateLimitOrder (ByVal AccountID As Integer, ByVal OrderID As Integer, ByVal OrderType As VertexFXBridgeAPI.OperationTypeEnum, ByVal Lots As Double, ByVal SymbolName As String, ByVal NewPrice As Double, Optional ByVal SL As Object = "", Optional ByVal TP As Object = "") As VertexFXBridgeAPI.TransResult
This function is used to update an entry order for a specific account number. After ManualUpdateLimitOrder method executes, UpdateLimitOrderResultevent fired.
Parameters
Key | Description |
AccountID | Account number to update an entry order for. Value of type is Integer. |
OrderID | Order number to be updated. Value of type is Integer. |
OrderType | Order Opertation type can be one of OperationTypeEnum. |
SymbolName | Order trading symbol name. Value of type is Integer. |
Lots | Order lots. Value of type is Double. |
NewPrice | Updated Price value. Value of type is Double. |
SL | Stop loss value. Optional value of type Double. |
TP | Take profit value. Optional Value of Type Double. |
Return value
Returns value of type TransResult. If the request was sent to server successfully it will return Succeeded.
Sample
Private Sub UpdateLimit_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UpdateLimit.Click Dim Result As VertexFXBridgeAPI.TransResult Dim vClient As VertexFXBridgeAPI.Client Dim vAccount As VertexFXBridgeAPI.Account vClient = BO.GetBO.ClientByIndex(1) vAccount = BO.GetBO.AccountByIndex (vClient.ClientID, 1) Dim vSymbol As VertexFXBridgeAPI.Symbol =OrderSymbol (64123) Dim OrderLots as Double = BO.GetBO.OrderLots (64123) Dim OrderType as VertexFXBridgeAPI.OperationTypeEnum= BO.GetBO.OrderBuySell (64123) Result= BO.GetBO.ManualUpdateLimitOrder (vAccount.AccountID, 64123, OrderType, OrderLots, vSymbol.Name, 1,,) End Sub
See Also