Create webhook signal#
About#
Submits an external trading signal from some application (e.g. TradingView) to a CopyFactory webhook.
POST /webhooks/:webhookId
For more information see Swagger documentation
Path parameters#
Name | Type | Required | Description |
---|---|---|---|
webhookId | string | Yes | webhook id |
Body#
CopyFactory webhook signal data: WebhookSignal
Response#
Responses:
- 201 - CopyFactory signal created successfully. Response schema: WebhookSignalId
- 400 - Signal payload validation failed. Response schema: Error
- 404 - Webhook with the specified id value not found. Response schema: Error
Examples#
Example request:
curl -X POST --header 'Accept: application/json' --header 'auth-token: token' -d '{
"symbol": "EURUSD",
"type": "POSITION_TYPE_BUY",
"time": "2020-08-24T00:00:00.000Z",
"volume": 0.01,
"stopLoss": 0.4,
"takeProfit": 0.6
}' 'https://copyfactory-api-v1.new-york.agiliumtrade.ai/webhooks/bsYA4ucPTt2ZBK1ynVx7Ef6kCdaUmSgL'