Skip to content

Create new provisioning profile

About

Creates a provisioning profile for MetaTrader. Please note that managerApi and managerUi profiles needs to be activated by our staff before you can use them. Please contact us via online chat to arrange this once you created the profile and uploaded the files to it.

POST /users/current/provisioning-profiles

For more information see swagger documentation

Headers

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

Body

Name Type Required Description
name string Yes User-defined provisioning profile name
version integer Yes MetaTrader version, enum: 4, 5
brokerTimezone string Yes Broker timezone from Time Zone Database
brokerDSTSwitchTimezone string Yes Timezone according to which daylight saving time switch happens on broker server
type string Provisioning profile type, enum mtTerminal, managerApi, managerUi. Default is mtTerminal
managerLogin number MetaTrader manager login
managerPassword string MetaTrader manager password
managerServer string Colon separated address and port of the manager server

Responses

  • 201 - Provision profile created successfully. Schema:
Name Type Required Description
id string Yes Created provisioning profile id
  • 400 - Wrong version of MetaTrader (not 4 or 5). Response schema: Error
  • 401 - Authorization failed. Response schema: Error

Examples

Example request:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'auth-token: token' -d '{
  "name": "test",
  "version": 5,
  "brokerTimezone": "EET",
  "brokerDSTSwitchTimezone": "EET"
}' 'https://mt-provisioning-api-v1.agiliumtrade.agiliumtrade.ai/users/current/provisioning-profiles'

Example response:

{
  "id": "f9ce1f12-e720-4b9a-9477-c2d4cb25f076"
}