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 | Trading account id |
Response
- 200 - Trading account returned. Response schema: TradingAccount
- 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",
"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": [],
"metastatsApiEnabled": false,
"riskManagementApiEnabled": false,
"createdAt": "2022-12-11T09:09:27.454Z"
}