AlgoWay Webhook JSON Validator for TradingView Alerts, Telegram Signals and MT5 Automation
Validate webhook JSON payloads before routing TradingView alerts, Telegram trading signals, MT5 automation requests, broker API orders, crypto exchange instructions and multi-platform trade execution through AlgoWay.
What AlgoWay validates
AlgoWay validates webhook JSON payloads to ensure they contain the required fields and correct data types before routing them to execution destinations. The validator checks:
- Required fields are present and non-empty
- Field values match expected data types
- Order action and order type values are supported
- Numeric fields contain valid numbers
- Symbol format is valid for the target platform
Canonical AlgoWay JSON fields
| Field | Description |
|---|---|
symbol | Trading instrument identifier (e.g., EURUSD, XAUUSD, BTCUSDT) |
order_action | Order action type: buy, sell, close, flat, closeall |
order_type | Order execution type: market, limit, stop |
price | Price for limit and stop orders |
volume | Position size in lots |
order_contracts | Alternative to volume for specifying position size |
trade_type | Position management mode: hedge, netting, opposite, inverse |
sl_price | Stop loss price level |
tp_price | Take profit price level |
comment | Optional order comment for identification |
Note: qty, quantity, and order_contracts may be accepted as aliases in some payload formats.
Example TradingView webhook JSON
The following example shows a typical TradingView webhook alert payload formatted for AlgoWay. This payload opens a buy market order on EURUSD with stop loss and take profit levels.
{
"symbol": "EURUSD",
"order_action": "buy",
"order_type": "market",
"volume": 0.1,
"trade_type": "hedge",
"sl_price": 1.08,
"tp_price": 1.095,
"comment": "TradingView alert via AlgoWay"
}Market order payload
Market orders execute immediately at the current market price. Use order_type: "market" for instant execution.
{
"symbol": "EURUSD",
"order_action": "buy",
"order_type": "market",
"volume": 0.1,
"trade_type": "hedge",
"sl_price": 1.08,
"tp_price": 1.095,
"comment": "TradingView alert via AlgoWay"
}The volume field specifies the position size in lots. Include sl_price and tp_price to set protective orders.
Limit and stop order payloads
Limit orders execute when the price reaches a specified level better than the current market price. Stop orders execute when the price reaches a specified level worse than the current market price.
Limit order
{
"symbol": "XAUUSD",
"order_action": "buy",
"order_type": "limit",
"price": 2320.5,
"order_contracts": 0.1,
"trade_type": "netting",
"sl_price": 2308,
"tp_price": 2345,
"comment": "Limit order from webhook payload"
}Stop order
{
"symbol": "XAUUSD",
"order_action": "sell",
"order_type": "stop",
"price": 2295.5,
"order_contracts": 0.1,
"trade_type": "hedge",
"sl_price": 2310,
"tp_price": 2265,
"comment": "Stop order from webhook payload"
}The price field is required for limit and stop orders. Use order_contracts as an alternative to volume for specifying position size.
Close and closeall payloads
Use close to close a specific position or closeall to close all positions for a symbol.
{
"symbol": "EURUSD",
"order_action": "closeall",
"trade_type": "hedge",
"comment": "Close all EURUSD positions"
}The trade_type field determines which positions to close when using hedge mode.
Supported order_action values
| Value | Description |
|---|---|
buy | Open a long position or add to existing long position |
sell | Open a short position or add to existing short position |
close | Close a specific position |
flat | Flatten position to zero exposure |
closeall | Close all positions for the specified symbol |
Supported order_type values
| Value | Description |
|---|---|
market | Execute immediately at current market price |
limit | Execute at specified price or better |
stop | Execute when price reaches specified stop level |
Supported trade_type values
| Value | Description |
|---|---|
hedge | Allow multiple positions in same or opposite directions |
netting | Consolidate positions into single net position |
opposite | Close opposite positions before opening new position |
inverse | Reverse current position direction |
Supported signal sources
AlgoWay accepts webhook payloads from the following signal sources:
- TradingView webhook alerts
- Telegram trading signals
- AI Telegram signal copier workflows
- TrendSpider webhooks and Strategy Bots
- MT5 Copier source
- cTrader Copier source
- Manual webhook JSON
- Custom JSON and API-style webhook payloads
Supported execution destinations
AlgoWay routes validated webhook payloads to the following execution destinations:
AlgoWay as a TradersPost alternative
AlgoWay provides a comprehensive alternative to TradersPost for webhook-based trading automation. Key advantages include:
- Support for both forex brokers and crypto exchanges
- MT5 native integration with hedge mode support
- Telegram signal copier functionality
- Multi-platform execution from a single webhook
- JSON payload validation before execution
For detailed comparison and migration guides, visit: algoway.trade/traderspost-alternative
Public validator links
Validate your webhook JSON payloads using the following public tools: