Webhook trading lets you execute trades on fomoed using external signals from TradingView, custom scripts, or any platform that can send HTTP requests.
How It Works
- Create a bot and select the Webhook strategy.
- fomoed generates a unique webhook URL and secret key for your bot.
- Configure your signal source (e.g., TradingView alert) to send POST requests to the webhook URL.
- When a signal is received, the bot validates the secret key and executes the trade.
TradingView Integration
To use TradingView alerts with fomoed:
- Create a TradingView alert on your desired indicator or strategy.
- Set the alert notification to Webhook URL and paste your fomoed webhook URL.
- In the alert message, use the JSON signal format described below.
Signal Format
Send a JSON payload with the following fields:
- secret — Your bot's webhook secret key for authentication.
- action — The trade action:
open_long, open_short, close_long, close_short, or reverse.
- size (optional) — Position size override. If omitted, uses the bot's configured size.
Supported Actions
- Open — Opens a new long or short position.
- Close — Closes the current position in the specified direction.
- Reverse — Closes the current position and opens one in the opposite direction.
Security
Every webhook request must include the correct secret key. Requests with missing or invalid keys are rejected. Keep your secret key private and never share your webhook URL publicly.