Syntax
Public Function NewPosition (AccountID As Long, BuySell As Long, Amount As decimal, SymbolID As Long, Price As decimal, Interest As Decimal, Optional Note As String = "", Optional UserDefinedDate As String = "") As String
Description
The NewPosition operation is used to open a new position on specific a symbol for the given account number.
Request Parameters
| Name | Description | Required |
| AccountID |
|
Yes |
| BuySell |
|
Yes |
| Amount |
|
Yes |
| SymbolID |
|
Yes |
| Price |
|
Yes |
| Interest |
|
Yes |
| Note |
|
No |
| UserDefinedDate |
|
No |
Response Elements
| Name | Description |
| Result | The operation returns the new position ticket number in case of success, otherwise, an explicit error code is returned |
See Also