Authentication & authorization#
In order to invoke MetaStats REST API you have to provide an authorization token via auth-token header. An API request will produce error 401 if for some reason the token specified in auth-token header turned out to be invalid and the authorization failed.
Alternatively you can use authorization token stored in
accessToken field of the MetatraderAccount model. This token is permitted to access single account.