Syntax
NewOrder( AccountId As Long, Symbol As Integer , BuySell As Integer , Lots As Double, 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 |
Symbol |
|
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 regular configuration. |
NO |
Response Elements
Name | Description |
Result |
This operation returns a string array that holds the following data ordered as listed below in case of success:
Otherwise see error codes. Type: JSON Object as String array. |
Sample
NewOrder Username: password: AccountId : Symbol: BuySell: lots: Note :
See Also