Get strategy external signals#
About#
Returns active external signals of a strategy. Requires access to copyfactory-api:rest:public:external-signals:getSignals method which is included into reader role. Requires access to strategy, account resources.
GET /users/current/strategies/:strategyId/external-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 |
---|---|---|---|
strategyId | string | Yes | strategy id |
Response#
Responses:
- 200 - External signals returned successfully. Response schema: Array<ExternalSignal>
- 401 - Authorization failed. Response schema: Error
- 403 - Authorization token has no access to copyfactory-api:rest:public:external-signals:getSignals method. Response schema: Error
- 404 - Subscriber not found. Response schema: Error
- 500 - Unexpected application error. 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/strategies/ABCD/external-signals'
Example response:
[
{
"id": "QNsdOOCX",
"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
}
]