Syntax
NewOrder( AccountId As Long, SymbolID As Long, BuySell As Long, Lots As decimal, Optional Note As String )
Description
The NewOrder operation is used to place a new market order at the specific given account number.
Request Parameters
Name | Description | Required |
AccountId |
|
Yes |
SymbolID |
|
Yes |
BuySell |
|
Yes |
Lots |
|
Yes |
Note | Optional. Comment of type string, in order to bypass the auto broker for both real/demo clients you can put the following token#$CHAT$#in the note field. Even if AUTO BROKER is on, with this tag in the comment order will be sent to the dealing room “CHAT SCREEN” and handled by dealers according to the dealing room’s regular configuration. | NO |
Response Elements
Name | Description |
Result | This operation returns an order ID in case of success:
Otherwise see error codes. Type: JSON Object as String array. |
See Also