Skip to content

Create MT4 account#

About#

Creates MT4 account.

POST /users/current/mt4/provisioning-profiles/:profileId/accounts

For more information see swagger documentation

Headers#

Name Type Required Description
auth-token string Yes MetaApi account token. See Authentication & authorization

Path parameters#

Name Type Required Description
profileId string Yes Id of the provisioning profile that will be used as the basis for creating this account

Body#

Name Type Required Description
address string Account holder's address
city string Account holder's city
country string Account holder's country
email string Yes Account holder's email
group string Yes A group of accounts in accordance with the hierarchy of groups in the trading platform
leverage number Yes Account leverage
name string Account holder's name
phone string Account holder's phone
state string Account holder's state
zip string Zip address
leadSource string Lead source
enabled boolean Is account enabled. Default is true

Response#

  • 201 - Account created successfully. Response schema: MetatraderAccount
  • 400 - Request validation failed. Response schema: Error

Examples#

Example request:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'auth-token: token' -d '{
  "email": "example@examle.com",
  "leverage": 10,
  "group": "Exness-Trial4"
}' 'https://mt-manager-api-v1.new-york.agiliumtrade.ai/users/current/mt4/provisioning-profiles/profileId/accounts'

Example response:

{
  "login": "86053193", 
  "password": "2y8kpft", 
  "investorPassword": "dc56esco"
}