Syntax
Public Overrides Function PendingOrdersReport(ByRef ClientID As Integer , ByRef FromDate As String, ByRef ToDate As String, ByRef AccountId As Integer, ByRef OrderType As Integer, ByRef lots As Double, ByRef SymbolID As Integer, ByRef Price As Double) As TransResult
This function is used to get the pending orders report which shows all the current pending Limit/Stop orders and SL/TP orders in the whole system or for a certain account(s)/office(s).After PendingOrdersReport executes the ReportDataReceived event fires.
Parameters
Key | Description |
clientID | The report will show all the current pending limitStop orders and SL/TP orders in the whole system or 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. |
AccountID | This report shows all the current pending limit/stop order and SL/TP orders in the whole system or for this account. Value of type Integer. 0 means for all account. |
OrderType | This report shows the current pending limit/stop orders and SL/TP orders of this type. Value of type is Integer: 0 : means All 1 Buy Limit Type -1 Sell Limit Type 2 Buy Stop Type -2 Sell Stop Type |
Lots | This report shows the current pending Limit/Stop orders and SL/TP orders of this amount. Value of type is Double. 0 means for all amounts |
SymbolID | This report shows the current pending Limit/Stop orders and SL/TP orders for this symbol. Value of type is Integer. 0 means for all Symbol. |
Price | This report shows the current Pending Limit/Stop orders and SL/TP orders price, as value of type Double 0 means for all Prices. |
Return value
Returns value of type TransResult. If the request was sent to server successfully it will return Succeeded.
Sample
Private Sub PendingOrders_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PendingOrders.Click Dim Result As VertexFXBridgeAPI.TransResult Dim Root_ID As Integer = BO.GetBO.RootID () Result= BO.GetBO.PendingOrdersReport(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 | Account | Shows the account ID of each client which has pending orders under the group you chose for the generated report. |
2 | Order | The Order ID for each pending order. |
3 | Type | The type of each pending order (Limit/Stop or SL/TP) 2 means Limit/Stop Orders 3 means SL/TP order |
4 | B/S | Shows if the pending order is (buy , sell , buy limit ,sell limit , buy stop, Sell stop) 1 means Buy / Buy Limit -1 means Sell / Sell Limit 2 means Buy Stop -2 means Sell Stop |
5 | Amount | The amount of each pending order. |
6 | Symbol ID | The Symbol ID of each pending order. |
7 | Price | The sent price for each Limit/Stop order. |
8 | SL | The sent price of stop loss for the pending order. |
9 | TP | The sent price of take profit for the pending order. |
10 | Date/Time | The date and time of when the pending order was placed. |
11 | Client ID | The client IDfor the account. |
See Also