Posted by BahaaAldeen Al Momani, Last modified by Diana Alkouni on 31 August 2020 03:23 PM


 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


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.


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 of an 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


Above parameters should be returned when you receive the server response for the order in calling MyBase.OrderState.MarketOrderClosed or MyBase.OrderState.MarketorderClosingFailed.

For more information check Close Order Cycle.

See Also

Back to Bridge LP API Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions