Syntax
Public Function UpdatePosition (AccountID As Long, TicketID As Integer, Lot As Double, Price As Double, BuySell As Integer, Interest As Double, Optional Note As String = "", Optional UserDefinedDate As String = "") As String
Description
The UpdatePosition operation is used to edit the given position number which belongs to the given account number.
Request Parameters
| Name |
Description |
Required |
| AccountID |
- Account number to update the opened position for
- Type: Long
- Default: None
- Constraints: Must be valid account Id and accessible by logged in dealer
|
Yes |
| TicketID |
- The opened position number is to be updated.
- Type: Integer.
- Default: None.
- Constraints: Must be a valid account. Id and accessible by logged in dealer
|
Yes |
| Lot |
- new Lots value
- Type: Double
- Default: none
|
Yes |
| Price |
- New open position price
- Type: Double
- Default: None
|
Yes |
| BuySell |
- The new position type
- Type: Integer
- Default: none
- Can be one of the following:
1: for buy type
-1: for sell type
|
Yes |
| Interest |
- Updated interest value
- Type: Double
- Default: None
|
Yes |
| Note |
- Custom String is used to marking the updated position.
- Type: String
- Default :
|
No |
| UserDefinedDate |
- The Updated Trade open time
- Type: String
- Default: which means now
- Constraints: Must be in the format (DD/MM/yyyy HH:mm:ss)
|
No |
Response Elements
| Name |
Description |
| Result |
The operation returns the updated position ticket number in case of success, otherwise, an explicit error code is returned |
See Also
VertexFX BackOffice WCF Service Index