NewOrder( AccountId As Long, Symbol As Integer , BuySell As Integer , Lots As Double, Optional Note As String )
The NewOrder operation is used to place a new market order at the specific given account number.
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.
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.
Username: password: AccountId : Symbol: BuySell: lots: Note :