Webhooks Overview
Last updated February 10, 2024
Webhooks are the main mechanism by which you can send data to TradeStory, Trigger Trading Events, and orchestrate your strategy actions. This can be seen in the Webhooks section of your Strategy.
The main concept is that a Strategy can have many Webhook Endpoints. When data is sent to any of these Webhook Endpoints, you can configure TradeStory to run Actions. An example of an Action is to trigger the execution of a Story.
The most obvious example would be to automate signals from external tools like TradingView.
1.Signal from tradingview (or other external tool)
2.Posts to TradeStory Webhook Endpoint.
3.TradeStory Webhook Endpoint runs its Action = Run Story to execute a trade on your account.
5.1.Adding a new webhook endpoint.
To add a new Webhook Endpoint to your strategy, navigate to the Webhooks section of your Strategy and click Add Webhook.
Simply give it a name and click Add to save it to your strategy.
Your new webhook endpoint can now be seen in the list. (Note the url is blurred for security. You can hover over it to see it). This is a unique endpoint generated specifically for you and your strategy and must not be shared with anyone.
You can copy the unique webhook URL by clicking on the link icon.
To delete the endpoint click on the trash icon.
To view logs or see incoming webhook history for the endpoint click on the logs list icon, or history zap icon.
You can turn the endpoint on/off (enable/disable) by toggling on the switch button on the right. Disabled webhooks will still accept incoming requests, but they will simply not run any of their configured Actions.
Next: Connect your webhook to Tradingview.