Skip to content

Read account

About

Returns trading account by id

GET /users/current/accounts/:accountId

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 MetaTrader account id

Response

  • 200 - Trading account returned. Response schema: MetatraderAccount
  • 401 - Authorization failed. Response schema: Error
  • 403 - Method or resource access permissions are missing. Response schema: Error
  • 404 - Trading account not found. Response schema: Error

Examples

Example request:

curl -X GET --header 'Accept: application/json' --header 'auth-token: token' 'https://mt-provisioning-api-v1.agiliumtrade.agiliumtrade.ai/users/current/accounts/1eda642a-a9a3-457c-99af-3bc5e8d5c4c9'

Example response:

{
  "_id": "1eda642a-a9a3-457c-99af-3bc5e8d5c4c9",
  "login": "50194988",
  "name": "mt5a",
  "server": "ICMarketsSC-Demo",
  "magic": 123456,
  "connectionStatus": "DISCONNECTED",
  "state": "DEPLOYED",
  "type": "cloud-g2",
  "accessToken": "VreIBlCEmqngArxSIZKBcuoC7tA0RXsOh4FCiwFaQ5dzo4v8HfWJFP2Opr1MSxC3",
  "region": "vint-hill",
  "manualTrades": true,
  "quoteStreamingIntervalInSeconds": 2.5,
  "tags": [],
  "reliability": "high",
  "baseCurrency": "USD",
  "copyFactoryRoles": ["PROVIDER"],
  "resourceSlots": 1,
  "copyFactoryResourceSlots": 4,
  "version": 4,
  "hash": 18093,
  "primaryReplica": true,
  "userId": "7b17e36a88502fd2faae5dd9d2166873",
  "accountReplicas": [],
  "metastatsHourlyTarificationEnabled": false,
  "riskManagementApiEnabled": false,
  "createdAt": "2022-12-11T09:09:27.454Z"
}