Syntax
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
Description
This function is used to create market order with LP, and it will return the object of type
Parameters
Part | Description |
BuySell | Market order type, the value of type OperationType |
Amount | Amount of lots, the value of type Double |
LPSymbolName | Symbol name to create market order on it, the value of type String |
LPAccountID | LP account number to get the order form, the value of type String |
BOOrderID | BackOffice order number, the value of type String |
BOAccountID | BackOffice account number, the value of type String |
BOOrderPrice | BackOffice price which takes BO order at it,Optional Value of type Double. |
Remarks
Above parameters should be returned when you receive the server response for the order in calling MyBase.OrderState.MarketOrderIDReceiveor MyBase.OrderState.MarketorderFailed.For more information check Market Order Cycle.
See Also