Skip to content

MQL Version in REST API functions

MQL Version in REST API functions

The current MQL version is 4.

MQL version 4 corresponds to the syntax and system attributes of MM 11.1.0 as of July 2025.

MQL version 3 corresponds to the syntax and system attributes of MM 11.1.0 prior to July 2025.

MQL version 2 corresponds to the syntax and system attributes of MM 11.0.0.

MQL version 1 corresponds to the syntax and system attributes of MM 10.1.0.

The mqlVersion parameter has been introduced in REST API functions that accept MQL query fragments. The QueryInput schema, which defines the request body of POST /entities/executeMQLQuery, now includes an mqlVersion field. This parameter or field can be specified when a query uses deprecated syntax or system attributes.

Beginning with MM 11.1.0, the POST /entities/upgradeMQLQuery function is available. This function accepts a QueryInput containing deprecated syntax or system attributes and returns an upgraded QueryInput.