Knowledgebase: Technical Support > API > Client API's/VTL > VTL Client Scripts > Trade Functions
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 12:52 PM
This function is used to make a new market order at the given trading symbol.To get a result from the server after accepted order, you have to consume OnOrderTrade event (when auto broker off) or OnPositionTrade event (when auto broker on).
Returns true if successful otherwise, returns false. In order to get an error, call GetLastError() function.