NewLimitOrder
Posted by Yousef Ibrahim, Last modified by Mohammad Alawneh on 02 July 2019 08:11 AM

 Syntax

 Public Overrides Function NewLimitOrder(ByVal LOType As LimitOrderType, ByVal Amount As Double, ByVal LPSymbolName As String, ByVal LimitPrice As Double, ByVal LPAccountID As String, ByVal BOOrderID As String, ByVal BOAccountID As String, Optional ByVal SL As Double = 0, Optional ByVal TP As Double = 0 ,Optional BOOrderPrice As Double = 0 ) As TransResult

Description

This function is used to create new limit order at LP side and returns the object of type TransResult, if it returns success result the bridge will expect to call MyBase.OrderState.LimitOrderAccept, otherwise the bridge expects to call MyBase.OrderState.LimitOrderRejected.

Parameters

Part Description
LOType Order operation type , the value of type LimitOrderType
Amount Amount of lots , the value of type Double
LPSymbolName Symbol name to create limit order for, the value of type String
LimitPrice Entry order open price, the value of type Double
LPAccountID The account number on LP side to create limit order for it, a value of type String
BOOrderID Backoffice order number, a value of type String
BOAccountID Backoffice account number, a value of type String
SL The stop lose value, optional value of Double
TP Take profit value, an optional value of Double
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.LimitOrderAccept or MyBase.OrderState.LimitOrderRejected.For more information checkLimit Order Cycle.


See Also


Back to Bridge LP API Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
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