Syntax
Public Function Cl osePosition(AccountID As Long, TicketID As Long, Amount As decimal, Price As decimal, RefAskPrice As decimal,RefBidPrice As decimal, Commission As decimal, Optional UserDefinedDate As String = "") As String
Description
The ClosePosition operation is used to close the position that belongs to the given account number.
Request Parameters
| Name | Description | Required |
| AccountID |
|
Yes |
| TicketID |
|
Yes |
| Amount |
|
Yes |
| Price |
|
Yes |
| RefAskPrice |
|
Yes |
| RefBidPrice |
|
Yes |
| Commission |
|
Yes |
| UserDefinedDate |
|
No |
Response Elements
| Name | Description |
| Result | The operation returns the closed ticket number in case of success, otherwise, an explicit error code is returned |
See Also