Giao diện
Ngôn ngữ
Tất Cả Bộ Sưu TậpStrategiesGiao dịch Webhook
Mở trong trung tâm trợ giúp đầy đủ
Strategies

Giao dịch Webhook

Cập nhật

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

  1. Create a bot and select the Webhook strategy.
  2. fomoed generates a unique webhook URL and secret key for your bot.
  3. Configure your signal source (e.g., TradingView alert) to send POST requests to the webhook URL.
  4. When a signal is received, the bot validates the secret key and executes the trade.

TradingView Integration

To use TradingView alerts with fomoed:

  1. Create a TradingView alert on your desired indicator or strategy.
  2. Set the alert notification to Webhook URL and paste your fomoed webhook URL.
  3. 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.

Bài viết này có hữu ích không?

Trước
Candle Range Theory (CRT)
Tiếp
Sao chép Giao dịch