Skip to content

Get stop outs#

About#

Returns subscriber stop outs

GET /users/current/subscribers/:subscriberId/stopouts

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
subscriberId string Yes subscriber id

Response#

Responses:

  • 200 - Account stop outs returned successfully. Response schema: Array<AccountStrategyStopOut>
  • 401 - Authorization failed. Response schema: Error
  • 404 - Susbscriber not found. Response schema: Error

Examples#

Example request:

curl -X GET --header 'Accept: application/json' --header 'auth-token: token' 'https://copyfactory-application-history-master-v1.agiliumtrade.agiliumtrade.ai/users/current/subscribers/105646d8-8c97-4d4d-9b74-413bd66cd4ed/stopouts'

Example response:

[
  {
    "strategy": {
      "id": "GtyH",
      "name": "Demo strategy"
    },
    "partial": true,
    "reason": "daily-balance",
    "reasonDescription": "daily realized loss exceeded maximum allowed value",
    "stoppedAt": "2020-08-24T00:00:00.000Z",
    "stoppedTill": "2020-08-24T10:00:00.000Z"
  }
]