Syntax
Public Function MarketOrdersHistoryReport(ClientID As Long, FromDate As String, ToDate As String, OrderID As Integer, TicketID As Integer, AccountID As Long, TransType As String, OrderType As Integer, Amount As Double, SymbolID As Integer, Price As Double, IP As String, Status As Integer, WhoID As Integer, Optional ByVal isPaging As Boolean = False) As String
Description
The MarketOrdersHistoryReport operation is used to get a market order history report that shows the entire market orders done in your whole system or
for certain given client account(s)/Office(s).
Request Parameters
Name |
Description |
Required |
ClientID |
- Client identifier to get market order history 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 |
OrderID |
- The report will show the report for this order number
- Type: Integer
- Default: none
- 0 means for all order
|
Yes |
TicketID |
- The report will show this position
- Type: integer
- Default: none
- 0 means for all position
|
Yes |
AccountID |
- The report will show the market order for this account id
- Type: Long
- Default: none
- 0 means for all account numbers
|
Yes |
TransType |
- The type of the transaction
- Type: String
- Default: none
- Can be one of the following
“” : all
“CP” for the closed position
“OP” for an open position
“DL” for Delivery order
|
Yes |
OrderType |
- The report will show the market order for this type
- Type: Integer
- Default: none
- Can be one of the following
0: all
-1: sell
1: Buy
|
Yes |
Amount |
- The report will show the market order for this amount
- Type: double
- Default: none
- 0 means for all amounts
|
Yes |
SymbolID |
- The report will show the market order this symbol ID
- Type: Integer
- Default: None
- 0: means for all Symbol
|
Yes |
Price |
- The report will show the market order on this price
- Type: Integer
- Default: None
- 0: means for all prices
|
Yes
|
IP |
- The report will show the market order of this IP
- Type: String
- Default: None
- “” : Means for all IPs
|
Yes |
Status |
- The report will show the market orders of this status
0: All
20: New Accepted
21: invalid price
44: quoted then Timer expired
45: equated then client reject
|
Yes |
WhoID |
- The Id of Dealer or Client
- Type: Integer
- Default: None
- 0: means for all
|
Yes |
|
|
|
Response Elements
Name |
Description |
Result |
The operation returns a list of types MarketOrderHisReport, otherwise, an explicit error code is returned if ClientID is less than 0.
The Following are the MarketOrderHisReport data member
- ClientID : Client identifier
- AccountID : Account identifier
- OrderID: order number
- TicketID: market order ticket number
- Type:
CP : means the close position
OP: means open position
DL: means Delivery Order
- Status: the action which was done on each market order
20: accepted
21: invalid price
44: requoted then timer expired
45: requoted then client reject
- BuySell: 1 means Buy
-1 means Sell
- Amount: market order amount
- SymbolID: market order symbol Id
- Price: market order accepted price
- OldPrice: requested price before re-quoting
- WhoID: the dealer id that handles market order
- RequestedTime: the date and time when the market order was requested
- CatchTime: the date and time when was received on the chatting screen
- DealerTime: the date and time when was dealer handled the market
- ClientTime: date and time when each requoted market order was handled from client-side
- IP: IP address for the dealer who handles the market order
- SymbolName: market order symbol name
- DeliveryItem: delivery item for delivery orders
|
See Also
VertexFX BackOffice WCF Service Index