Syntax
Public Overrides Function CloseMarketOrder (ByVal LPOrderID As String, ByVal BuySell As OperationType, ByVal Amount As Double, ByVal LPSymbolName As String, ByVal LPAccountID As String, ByVal BOOrderID As String, ByVal BOAccountID As String, ByVal BOTicketID As String) As TransResult
Description
This function used to close market order at the LP and return the object of type TransResult if the return is successfull result then the bridge will expect calling MyBase.OrderState.MarketOrderClosed, otherwise the bridge expects to call MyBase.OrderState.MarketorderClosingFailed.
Parameters
Key | Description |
LPOrderID | LP order number to be closed, value of type String |
BuySell | Order operation type, value of type OperationType |
Amount | Amount of lot to be closed, value of type Double |
LPSymbolName | Symbol name ofan order to be closed, value of type String |
LPAccountID | Account number on LP side to closed market order for, value of type String |
BOOrderID | BackOffice order number, value of type String |
BOAccountID | BackOffice account number, value of type String |
BOTicketID | BackOffice ticket number, value of type String |
Remarks
Above parameters should be returned when you receive the server response for the order in calling MyBase.OrderState.MarketOrderClosedor MyBase.OrderState.MarketorderClosingFailed.
For more information checkClose Order Cycle.
See Also