| Public Overrides Function NewMarketOrder (ByVal BuySell As OperationType, ByVal Amount As Double, ByVal LPSymbolName As String, ByVal LPAccountID As String, ByVal BOOrderID As String, ByVal BOAccountID As String, Optional BOOrderPrice As Double = 0) As TransResult
This function is used to create market order with LP, and it will return the object of type TransResult, if return success results the bridge will expect to call MyBase.OrderState.MarketOrderIDReceive, otherwise the bridge expect to call MyBase.OrderState.MarketorderFailed.
||Market order type, the value of type OperationType
||Amount of lots, the value of type Double
||Symbol name to create market order on it, the value of type String
||LP account number to get the order form, the value of type String
||Backoffice order number, the value of type String
||Backoffice account number, the value of type String
||Backoffice price which takes BO order at it, Optional Value of type Double.
Above parameters should be returned when you receive the server response for the order in calling MyBase.OrderState.MarketOrderIDReceive or MyBase.OrderState.MarketorderFailed. For more information check Market Order Cycle.
Back to Bridge LP API Index