Skip to content

Update expert advisor

About

Updates or creates an expert advisor with specified id. Please note that you can create custom EAs for MT4 G1 instances only.

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

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
symbol string Yes Expert advisor symbol
period string Yes Expert advisor period. For MetaTrader 4 allowed periods are 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w, 1mn. For MetaTrader 5 allowed periods are 1m, 2m, 3m, 4m, 5m, 6m, 10m, 12m, 15m, 20m, 30m, 1h, 2h, 3h, 4h, 6h, 8h, 12h, 1d, 1w, 1mn
preset string Yes base64-encoded preset file

Responses:

  • 204 - Expert advisor updated
  • 400 - Validation failed. Response schema: Error
  • 401 - Authorization failed. Response schema: Error
  • 404 - Trading account with specified id not found. Response schema: Error

Examples

Example request:

curl -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'auth-token: token' -d '{
"symbol": "EURUSD",
"period": "1H",
"preset": "bXVsdGlwbGU9NS4wCm1hMT03Cm1hMj0yMApkZWNpbWFsUGxhY2VzPTIKZW1hPTE0"
}' 'https://https://mt-provisioning-api-v1.agiliumtrade.agiliumtrade.ai/users/current/accounts/7f18b2a0-1e8f-452c-9a63-4fffcc1ba81f/expert-advisors/test'