NewOrderResult
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 14 December 2018 10:43 PM

Syntax

Public Sub NewOrderResult(ByRef Result As VTLServerApplication.NewOrderResultEnum, ByRef AtPrice As Double, ByRef PosOrOrder As Short, ByRef OrderId As Integer, ByRef BuySell As VTLServerApplication.OperationTypeEnum, ByRef Lots As Double, ByRef Symbol As VTLServerApplication.CSymbol, ByRef ServerTime As String,ByRef TransTage As String)

This event generates after calling the NewMarketOrder and receive its result.

Parameters

Key Description 
Result The response from the server, Value of type NewOrderResultEnum.
AtPrice The market order requested the price, value of type Double. 
PosOrOrder If 1 it means the position was closed automatically,2 means the order transferred to BackOffice side and it’s pending, value of type Short.
OrderID Number of order when the PosOrOrder = 2 , value of type Integer.
BuySell Operation type,value of type  OperationTypeEnum.
Lots Amount of lots, the value of type Double.
Symbol Trading symbol object, the value of type  CSymbol
ServerTime The server time when the operation proceeds, the value of type String.
TransTage The same string that was sent through NewMarketOrder method.


Remark
Use this event know the result for the new order.


See Also


Back to VTL Server Script 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