Skip to content

Upload EA file

About

Uploads an expert advisor file. EAs which use DLLs are not supported.

PUT /users/current/accounts/:accountId/expert-advisors/:expertId/file

For more information see swagger documentation

Headers

Name Type Required Description
auth-token string Yes Authorization token. See Authentication and authorization

Path parameters

Name Type Required Description
accountId string Yes Trading account id
expertId string Yes Expert advisor id

Body

Name Type Required Description
file File Yes Expert advisor file

Responses:

  • 204 - File uploaded successfully
  • 400 - File is required. Response schema: Error
  • 401 - Authorization failed. Response schema: Error
  • 404 - Trading account or expert advisor with specified id not found. Response schema: Error

Examples

Example request:

curl -X PUT --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'auth-token: token' 'https://mt-provisioning-api-v1.agiliumtrade.agiliumtrade.ai/users/current/accounts/7f18b2a0-1e8f-452c-9a63-4fffcc1ba81f/expert-advisors/test/file'