Skip to content

Get drawdown trackers defined for an account#

About#

Returns drawdown trackers defined for an account

GET /users/current/accounts/:accountId/drawdown-trackers

For more information see Swagger documentation

Headers#

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

Path parameters#

Name Type Required Description
accountId string Yes id of the MetaApi account

Response#

Responses:

  • 200 - Account drawdown tracker definitions returned. Response schema: Array<DrawdownTracker>
  • 401 - Authorization failed. Response schema: Error
  • 404 - MetaApi account not found. Response schema: Error

Examples#

Example request:

curl -X GET --header 'Accept: application/json' --header 'auth-token: token' 'https://risk-management-api-v1.agiliumtrade.agiliumtrade.ai/users/current/accounts/105646d8-8c97-4d4d-9b74-413bd66cd4ed/drawdown-trackers'

Example response:

[
  {
    "_id": "ABCD",
    "name": "Tracker 1",
    "startBrokerTime": "2020-08-24 00:00:00.000",
    "endBrokerTime": "2020-08-24 00:00:00.000",
    "period": "day",
    "relativeDrawdownThreshold": 0.1,
    "absoluteDrawdownThreshold": 1.1
  }
]