Knowledgebase:
NewLimitOrder
Posted by Yousef Ibrahim, Last modified by Rawan Al Hourani on 03 April 2017 11:56 AM

 

 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) As TransResult

This function 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 calling MyBase.OrderState.LimitOrderAccept, otherwise the bridge expects to call MyBase.OrderState.LimitOrderRejected.

Parameters

Part Description
LOType Order operation type , value of type LimitOrderType
Amount Amount of lots , value of type Double
LPSymbolName Symbol name to create limit order for, value of type String
LimitPrice Entry order open price, value of type Double
LPAccountID Account number on LP side to create limit order for it, value of type String
BOOrderID Backoffice order number, value of type String
BOAccountID Backoffice account number, value of type String
SL The stop lose value, optional value of Double
TP Take profit value, optional value of 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