OrderBuySell
Posted by Mohammad Rahhal, Last modified by Laith Ghawi on 02 July 2019 09:21 AM

Syntax

 Readonly Property OrderBuySell(OrderID As Integer) As VertexGeneral.OperationTypeEnum

Description

This property used to recognize if your order type is Buy or Sell or BuyStop or SellStop by giving order number.

Parameters

Parameters Description
OrderID Associated order number to know its type, value of type is Integer.

Return value 

Returns value of type OperationTypeEnum which indicate the order type

Remarks 

 If you want to know the type of specific order, just use this property with the order ID .

Sample

 Public WithEvents BOAPI As CVertexFXBOAPI

Private Sub OrderType_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OrderType.Click

    Dim Type As VertexGeneral.OperationTypeEnum

    Dim vOrder As COOrder = BOAPI.OrderByIndex(1) 

    Type = BOAPI.OrderBuySell(vOrder.OrderID)

    Msgbox(Type)

 End Sub​

See Also


VertexFX Backoffice 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