MetaApi supports the REST API and WebSocket API (socket.io) for communicating with the client. This section describes how to interact with the application using the REST API.
Each request to MetaApi using the REST API is synchronous, that is, the server sends a response only after completion of the desired command (for example, receiving data or creating a new order). Each section below contains a description of the request, request parameters, and possible responses. There are also examples of requests and responses.
Testing the API#
You can use Swagger documentation in order to test the REST API. It explains each feature of the MetaApi REST API and allows you to test the API.