Skip to content

Get drawdown tracking stats#

About#

Returns account drawdown tracking stats by drawdown tracker id

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

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
id string Yes id of the drawdown tracker

Query parameters#

Name Type Required Description
startTime string time to start loading stats from, in YYYY-MM-DD HH:mm:ss.SSS format. Default is current time. Note that stats is loaded in backwards direction
limit integer number of records to load, default: 1

Response#

Responses:

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/ABCD/statistics'

Example response:

[
  {
    "startBrokerTime": "2020-08-24 00:00:00.000",
    "endBrokerTime": "2020-08-25 00:00:00.000",
    "period": "day",
    "initialBalance": 10000,
    "maxDrawdownTime": "2020-08-25 00:00:00.000",
    "maxAbsoluteDrawdown": 1.1,
    "maxRelativeDrawdown": 0.1,
    "thresholdExceeded": true
  }
]