Read account replica by id
About
Returns MetaTrader account replica belonging to the current user by primary account id and replica id
GET /users/current/accounts/:accountId/replicas/:replicaId
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 primary account id |
replicaId | string | Yes | MetaTrader account replica id to retrieve |
Response
- 200 - MetaTrader account replica returned. Response schema: MetatraderAccount
- 401 - Authorization failed. Response schema: Error
- 404 - MetaTrader 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/replicas/861ceafd-a58e-2fb9-a9bb-c9dd449f3bb4'
Example response:
{
"_id": "861ceafd-a58e-2fb9-a9bb-c9dd449f3bb4",
"name": "mt5a",
"login": "50194988",
"server": "ICMarketsSC-Demo",
"provisioningProfileId": "f9ce1f12-e720-4b9a-9477-c2d4cb25f076",
"magic": 123456,
"application": "MetaApi",
"type": "cloud",
"accessToken": "2RUnoH1ldGbnEneCoqRTgI4QO1XOmVzbH5EVoQsA"
"connectionStatus": "DISCONNECTED",
"state": "DEPLOYED",
"region": "london",
"quoteStreamingIntervalInSeconds": 5,
"slippage": 30,
"manualTrades": false,
"copyFactoryResourceSlots": 1,
"resourceSlots": 1,
"extensions": [],
"tags": [],
"reliability": "high"
}