Skip to content

Get trading signals#

About#

Returns trading signals the subscriber is subscribed to

GET /users/current/subscribers/:subscriberId/signals

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 - Trading signals returned successfully. Response schema: Array<TradingSignal>
  • 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-api-v1.new-york.agiliumtrade.ai/users/current/subscribers/105646d8-8c97-4d4d-9b74-413bd66cd4ed/signals'

Example response:

[
  {
    "strategy": {
      "id": "GtyH",
      "name": "Demo strategy"
    },
    "positionId": "+apNW3",
    "time": "2020-08-24T00:00:00.000Z",
    "symbol": "EURUSD",
    "type": "market",
    "side": "buy",
    "openPrice": 0.5,
    "stopLoss": 0.4,
    "takeProfit": 0.6,
    "signalVolume": 0.01,
    "subscriberVolume": 0.01,
    "closeAfter": "2020-08-26T00:00:00.000Z",
    "closeOnly": true
  }
]