Syntax
Public Function PendingOrdersReport (ClientID As Long, FromDate As String, ToDate As String, AccountID As Long, OrderType As Long, Amount As Decimal, SymbolID As Long, Price As Decimal) As String
Description
The thePendingOrdersReport operation is used to get pending orders to report that shows all current pending limit/stop orders and SL/TP orders in your
whole system or for the certainly given client id.
Request Parameters
Name |
Description |
Required |
ClientID |
- Client identifier to get pending orders report for
- Type: Long
- Default: None
- Constraints: Must be valid client Id and accessible by logged in dealer
|
Yes |
FromDate |
- Specify the duration
- Type: String
- Default: None
- Constraints: Must be valid date format (DD/MM/YYYY HH:NN:SS)
- : means from the beginning
|
Yes |
ToDate |
- Specify the duration
- Type: String
- Default: None
- Constraints: Must be valid date format (DD/MM/YYYY HH:NN:SS)
- : means till now
|
Yes |
AccountID |
- The report will show the pending orders for this account
- Type: Long
- Default: none
- 0 means for all account numbers
|
Yes |
OrderType |
- The report will show the current pending limit/stop order or SLTP order
- Type: Long
- Default: none
- Can be one of the following
1: buy limit type
-1: sell limit type
2: Buy stop Type
-2: sell stop type
|
Yes |
Lots |
- The report will show the current pending orders on this amount
- Type: decimal
- Default: none
- 0 means for all amounts
|
Yes |
SymbolID |
- The report will show the pending orders that take on this symbol ID
- Type: Long
- Default: None
- 0: means for all Symbol
|
Yes |
Price |
- The report will show the pending orders that take on this price
- Type: Long
- Default: None
- 0: means for all prices
|
Yes |
|
|
|
Response Elements
Name |
Description |
Result |
The operation returns a list of type PendingOrdersReport, otherwise, an explicit error code is returned if ClientID is less than 0.
The Following are the PendingOrdersReportdata member
- ClientID :Client Identifier
- AccountID :Account Identifier
- OrderID: OrderNumber
- Type:order Type
2: limit/Stop
3: SLTP order
- BuySell:
1: means buy/buy limit
-1: means sell/Sell Limit
2: means buy stop
-2: means Sell stop
- 0: means All
- Amount: Amount of each pending order
- SymbolID:pendingSymbol Id
- Price: Pending order Price
- SL: pending stop loss value
- TP: take profit value
- DateTime: placed pending order time
- SymbolName :pending ordersymbol name
|
See Also
VertexFX BackOffice WCF Service Index
BuySell