MarketOrdersHistoryReport
Posted by Angham Al-Banawien, Last modified by Diana Alkouni on 16 December 2019 02:46 PM


Syntax

Public Overrides Function MarketOrdersHistoryReport(ByRef ClientID As Integer , ByRef FromDate As String, ByRef ToDate As String, ByRef OrderID As Integer, ByRef Ticket As Integer, ByRef AccountID As Integer, ByRef transType As String, ByRef OrderType As Integer, ByRef Amount As Double, ByRef SymbolId As Integer, ByRef Price As Double, ByRef IPAddress As String, ByRef Status As Integer, ByVal WhoID As Integer) As TransResult

This function is used to get market order history report which shows the entire market order done in the whole system or for a certain account(s)/office(s). After MarketOrdersHistoryReport executes the ReportDataReceived event fires.

Parameters

Key Description 
clientID The report will show all the entire market orders done for all accounts under this client. Value of type is Integer.
FromDate Specify the duration. Value of type is String
Date in this format “DD/MM/YYYY HH: NN: SS”
“” means form beginning.
ToDate Specify the duration, value of type is String.
Date in this format “DD/MM/YYYY HH: NN: SS”
“” means till now.
OrderID The report will show the transaction for this order. Value of type is Integer
0 means for all orders
Ticket The report will show this position. Value of type Integer.
0 means for all position
AccountID The report will show the market orders for this account. Value of type is Integer.
0 means for all account
TransType The type of the transaction. Value of type String.
“”: means All
“CP” means liquidate
“OP” means New
OrderType The report will show the market orders of this type. Value of type is Integer.
 0 means all types
-1 means Sell type
 1 means Buy type 
Amount The report will show the market order of this type. Value of type is Double
0 means all amounts
SymbolID The report will show the market orders of this symbol. Value of type Integer.
0 means for all symbols
Price The report will show the market orders of this price. Value of type is Double
0 means all prices
IP Address The report will show the market orders of this IP. Value of type is String
“” means all IPs
Status The report will show the market orders of this status , value of type Integer
0 means all statuses
20 means new accepted
21 means invalid price
44 means requoted then timer expired
45 means requoted then client rejected
Who Id The ID of dealer/client. Value of type is Integer.
 0 All
-1 System

 Return value

Returns value of type TransResult. If the request was sent to server successfully it will return Succeeded.

Sample

Private Sub MarketOrders_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MarketOrders.Click

    Dim Result As VertexFXBridgeAPI.TransResult

    Dim Root_ID As Integer = BO.GetBO.RootID ()

    Result= BO.GetBO.MarketOrdersHistoryReport(Root_ID,"", "", 0, 0, 0, 0, 0)

 End Sub

Result: 

The result of this report contains many details; the following table shows each column description

Data row Index Column name Description 
1 Order Shows the orderID of each market order
2 Ticket The ticket ID which will be assigned for each market order after the acceptance.
3 Account  The client account ID for each requested market order.
4 Type The type of each market order. Whether New or close
“CP” for liquidate
“OP” for new
5 Status The action which was done on each market order by the dealer(Accept, Invalid Price) or by client (Price change – Time expired  or Price Change – Client Reject)
20 new accepted
21 invalid price
44 requoted then timer expired
45 requoted then client rejected
6 Trade  The order type (Buy/Sell)
 1 means buy
-1 means sell
7 Amount The Order amount of lots.
8 Symbol Id  The ID of the order Symbol.
9 Price The accepted price from the dealer or client side of each market order.
10 Old Price The requested price from the client side before requoting the market order from the dealing room side.
11 Who  The dealer ID who handled each market order.
12 Requested time The date and time when each market order was requested from the client side.
13 Catch time The time when each market order was received by the chatting screen of the dealing room.
14 Dealer Time The time when each market order was handled from the dealer side.
15  Client Time The time when each requoted market order was handled from client side.
16  IP The IP address for the dealer who handled each market order, or IP address for the client who accepted or rejected each requoted market order.
17  Symbol name The name of the order symbol.
18 Client Id Client ID for the account.
19 Delivery items Delivery item for the delivery order.

 


See Also


Back to VFXBO 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