Skip to content

Get drawdown events stream#

About#

Returns drawdown events stream

GET /users/current/drawdown-events/stream

For more information see Swagger documentation

Headers#

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

Query parameters#

Name Type Required Description
previousSequenceNumber integer value of the last consumed sequence number to start streaming from, default: 0
accountId string id of the MetaApi account
trackerId string id of the drawdown tracker
limit integer pagination limit, default: 1000, min: 1, max: 1000

Response#

Responses:

  • 200 - Drawdown events returned successfully. Response schema: Array<DrawdownEvent>
  • 401 - Authorization failed. 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/drawdown-events/stream'

Example response:

[
  {
    "sequenceNumber": 1,
    "accountId": "105646d8-8c97-4d4d-9b74-413bd66cd4ed",
    "trackerId": "ABCD",
    "startBrokerTime": "2020-08-24 00:00:00.000",
    "endBrokerTime": "2020-08-24 00:00:00.000",
    "period": "day",
    "brokerTime": "2020-08-24 00:00:00.000",
    "absoluteDrawdown": 1.1,
    "relativeDrawdown": 0.1
  }
]