Skip to content

Get user log#

About#

Returns event log for a CopyFactory accounts, sorted in reverse chronological order

GET /users/current/subscribers/:subscriberId/user-log

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

Query parameters#

Name Type Required Description
startTime string(datetime) start of time range, inclusive (in ISO format)
endTime string(datetime) end of time range, exclusive (in ISO format)
offset integer pagination offset, default: 0, min: 0
limit integer pagination limit, default: 1000, min: 1, max: 1000

Response#

Responses:

  • 200 - Log messages returned successfully. Response schema: Array<UserLogMessage>
  • 401 - Authorization failed. Response schema: Error
  • 404 - Subscriber 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/user-log?startTime="2020-04-20T04:00:00.000Z"&endTime="2020-09-20T04:00:00.000Z"&offset=10&limit=50'

Example response:

[
  {
    "time": "2020-08-24T00:00:00.000Z",
    "symbol": "AUDUSD",
    "strategyId": "nIMn",
    "strategyName": "Demo strategy",
    "positionId": "+apNW3",
    "side": "buy",
    "type": "market",
    "openPrice": 1.02371,
    "level": "INFO",
    "message": "Received a buy signal from Demo strategy strategy"
  }
]