Webhook Integration for Trading Automation

Written by, Development Team on July 7, 2025

documentationtutorials

Automate your trading strategy by integrating external systems with AutoTrade using webhooks. This guide walks you through every step— from setup to execution—so you can trigger your trading robots instantly based on market signals.

AutoTrade is here.

What is a webhook?

A webhook is an HTTP callback that sends real-time data from one application to another whenever a specific event occurs. In trading, webhooks let you automatically execute orders or strategies when signals are generated by charting platforms like TradingView.

Prerequisites

  1. AutoTrade Desktop App installed and running on your computer.
  2. An Advanced Subscription to AutoTrade (required to enable the Webhook module).
  3. A saved trading robot in AutoTrade, identified by a unique name (e.g., my_robot_name).
  4. A webhook service endpoint. We recommend Webhook.site or any provider that supports forwarding payloads.

Configuring AutoTrade Webhooks

Follow these steps to connect your AutoTrade instance to your webhook endpoint:

  1. Open AutoTrade and log in.
  2. Navigate to Settings → Webhook.
  3. Enter Your Credentials:
    • API Key: <your_api_key>
    • API Token: <your_api_token>
  4. Enable the Webhook Module:
    • Toggle Webhook to On.
    • Save and reload the application.
  5. Restart AutoTrade to activate the webhook listener.

How it works

  1. Generate a Signal: Create an alert in your charting platform (e.g., TradingView) with a custom message or JSON payload.
  2. Send Alert to Webhook: TradingView sends the HTTP POST request to your webhook URL.
  3. Forward to AutoTrade: Your webhook service forwards the JSON payload to AutoTrade’s local server.
  4. Execute the Action: AutoTrade parses the payload and runs the specified action on your trading robot.

AutoTrade webhook workflow

Example Payload Flow

AutoTrade Socket API

For now, SSCA supports two actions:

ActionExplainationPayload
run_robotExecute a stored trading robot by name.{"action":"run_robot","kwargs":{"name":"my_robot_name"}}
killShutdown AutoTrade and all running robots.{"action":"kill","kwargs":{}}

Next Steps

Ready to supercharge your trading workflow? Set up webhooks today and let AutoTrade handle the rest!

🔗 Download AutoTrade Now
📚 Explore Documentation & Tutorials
💬 Ask Questions & Get Support


Let us know if you need further customization or additional examples!