Public Overrides Function CloseByHedge(ByVal LPOrderID1 As String, ByVal LPOrderID2 As String, ByVal BuySell1 As OperationType, ByVal BuySell2 As OperationType, ByVal Amount As Double, ByVal LPSymbolName As String, ByVal LPAccountID As String, ByVal BOOrderID1 As String, ByVal BOOrderID2 As String, ByVal BOAccountID As String) As TransResult
This function used to close two market order positions with specific amount at the LP and return the object of type TransResult, if return success result the bridge will expect calling MyBase.OrderState.MarketOrderClosedByHedge, otherwise the bridge expects to call MyBase.OrderState.MarketorderClosingByHedgeFailed.
||The first order number on LP side to be closed by hedge, Value of type String
||The second order number on LP side to be closed by hedge, Value of type String
||The first order operation type, Value of type OperationType
||The second order operation type, Value of type OperationType
||The amount of lot to be closed, value of type Double
||The orders symbol name to be closed, value of type String
||LP account number to be closed orders on it, value of type String
||The first order number on Backoffice side, Value of type String
||The second order number on Backoffice side, Value of type String
||Backoffice account number, value of type String
Above parameters should be returned when you receive the server response for the order in calling MyBase.OrderState.MarketOrderClosedByHedge or MyBase.OrderState.MarketorderClosingByHedgeFailed.
For more information check Close By hedge Cycle.
Back to Bridge LP API Index