Skip to content

Update external signal#

About#

Updates external signal for a strategy

PUT /users/current/strategies/:strategyId/external-signals/:id

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
strategyId string Yes strategy id
id string Yes external signal id (should be 8 alphanumerical symbols)

Body#

External signal payload schema: UpdatedExternalSignal

Response#

Responses:

  • 204 - Subscriber saved successfully.
  • 400 - Subscriber payload validation failed. Response schema: Error
  • 401 - Authorization failed. Response schema: Error

Examples#

Example request:

curl -X PUT --header 'Accept: application/json' --header 'auth-token: token' -d '{
  "symbol": "EURUSD",
  "type": "POSITION_TYPE_BUY",
  "time": "2020-08-24T00:00:00.000Z",
  "updateTime": "2020-08-26T00:00:00.000Z",
  "volume": 0.01,
  "magic": 1000,
  "stopLoss": 0.4,
  "takeProfit": 0.6,
  "openPrice": 0.5
}' 'https://copyfactory-api-v1.new-york.agiliumtrade.ai/users/current/strategies/iAFv/external-signals/2DLmSEib'