Main clusters and core pages.
AlgoWay connects TradingView alerts to MEXC Futures through webhook automation. The full setup has five critical parts: create a dedicated MEXC API key, enable only the required Futures permissions, bind the API key to the AlgoWay server IP address, create a MEXC webhook in AlgoWay, and send valid JSON from TradingView to the AlgoWay webhook URL.
This guide describes the complete route shown in the screenshots: the MEXC API permission screen, the Link IP Address field, the created API key modal, the AlgoWay webhook form, the webhook test modal, the webhook UUID in the dashboard, and the TradingView alert configuration.
The execution route is:
TradingView alert → AlgoWay webhook URL → AlgoWay validation → MEXC Futures API → MEXC Perpetual Futures order
TradingView creates the signal. AlgoWay receives the webhook payload, validates the JSON, applies the selected webhook settings, signs the request with the MEXC API credentials, and sends the order request to MEXC Futures.
Last updated: 2026-05-17 • Author: AlgoWay
To automate MEXC Futures from TradingView with AlgoWay, complete this checklist:
AlgoWay works as the automation bridge between TradingView and MEXC:
The API key is the authorization layer. The linked IP address is the server restriction layer. The webhook URL is the TradingView delivery endpoint. All three must match the same AlgoWay route.
Prepare the following before you create the MEXC API key:
Open MEXC → API Management → Create New API Key. Use a dedicated API key for AlgoWay, not a shared key used by another bot or application.
On the MEXC screen, complete the API form from top to bottom:
connector or ALGOWAY-MEXC.
The Link IP Address field is one of the most important parts of the MEXC setup. This field restricts the API key so it can be used only from the server IP address entered in MEXC.
In the screenshot, the IP address is entered in the MEXC form before clicking Create. This means MEXC will link the API key to that server IP. For your setup, copy the current AlgoWay server IP from your AlgoWay dashboard and paste that exact value into MEXC.
In the MEXC API form, find this field:
Link IP Address
MEXC also shows a warning next to this field: keys that are not linked to an IP address are valid for 90 days only and are not recommended. For AlgoWay automation, do not leave this field empty.
If the Access Key and Secret Key are correct but the linked IP is wrong, AlgoWay can still receive the TradingView alert, but MEXC can reject the API request. In this case, the problem is not the TradingView JSON. Check the linked IP before changing the strategy or alert message.
For this MEXC Futures route, the API key must have Futures order permissions. The screenshot shows the relevant selections under the Futures section.
| Permission area | Permission | Use for this route? | Why it matters |
|---|---|---|---|
| Futures → Trade | View Order Details | Yes | Needed to check order state, exchange response and execution status. |
| Futures → Trade | Order Placing | Yes | Needed to create MEXC Futures orders through AlgoWay. |
| Futures → Account | View Account Details | Only if your route requires it | Can be used for account checks, but order placement itself depends on the trade permission. |
| Spot | Spot account or spot trade permissions | No for this Futures guide | This page describes MEXC Futures / Perpetual automation, not Spot automation. |
| Withdraw | Withdrawal-related permissions | No | Withdrawal access is not required for AlgoWay webhook trading. |
The screenshot shows Spot permissions disabled and Futures trade permissions enabled. This is the correct direction for a TradingView to MEXC Futures webhook route.
After MEXC creates the API key, it opens a confirmation window with three important fields:
The Secret Key is displayed only once. Save it immediately before closing the MEXC confirmation window. Also check that the Linked IP Address field is not empty and contains the same AlgoWay server IP that you pasted during API key creation.
After the MEXC API key is created and the linked IP is confirmed, create the webhook route in AlgoWay.
| AlgoWay field | Value for this route | Purpose |
|---|---|---|
| Source (from) | TradingView | Defines where the alert comes from. |
| Platform (to) | MEXC | Defines the destination exchange. |
| Quantity Multiplier | Absolute or selected route setting | Controls how AlgoWay interprets incoming order size. |
| Market Type | Futures / Perpetual | Matches the MEXC Futures route. |
| Margin Mode | Cross or Isolated | Controls the margin mode used by the route. |
| Trade Type | Reverse / Netting, Hedge or selected mode | Controls how AlgoWay handles direction changes and existing exposure. |
| API Key | MEXC Access Key | Identifies the MEXC API key. |
| API Secret | MEXC Secret Key | Signs authenticated MEXC API requests. |
Before connecting live TradingView alerts, test the MEXC route from AlgoWay with a small order.
If the test fails, check the failure in this order: linked IP, Futures permissions, Access Key, Secret Key, symbol format, quantity step, margin mode, leverage, position mode and MEXC response in AlgoWay logs.
After the webhook is created and tested, copy the webhook endpoint from the AlgoWay dashboard.
Webhook URL format:
https://algoway.co/your-webhook-uuid
TradingView must send a valid JSON object. AlgoWay expects structured fields, not plain text.
{
"platform_name": "mexc",
"ticker": "{{ticker}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.market_position}}",
"price": "{{close}}"
}
TradingView replaces these placeholders when the alert fires:
{{ticker}} — chart ticker;{{strategy.order.contracts}} — strategy order size;{{strategy.market_position}} — strategy position state;{{close}} — close price at alert time.
For a controlled test, use a fixed symbol and small valid quantity:
{
"platform_name": "mexc",
"ticker": "BTCUSDT.P",
"order_contracts": 0.001,
"order_action": "buy"
}
Use the exact symbol format accepted by your MEXC Futures route. If the order is rejected, check symbol format, quantity step, margin, leverage, position mode and API permissions.
{
"platform_name": "mexc",
"ticker": "{{ticker}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.market_position}}",
"price": "{{close}}",
"stop_loss": "100",
"take_profit": "200"
}
Confirm in your route how stop_loss and take_profit are interpreted before live trading. Depending on the route, these values may be treated as distance values, points or route-specific parameters.
After the webhook URL and JSON are ready, create or edit the TradingView alert.
For bar-close strategies, use Once per bar close unless your strategy intentionally requires intra-bar execution. This prevents repeated intrabar webhook calls from the same candle.
MEXC Futures automation depends on four execution settings: symbol, quantity, margin mode and trade type.
TradingView tickers and MEXC Futures symbols may use different formats. Before live trading, confirm the exact symbol accepted by your AlgoWay MEXC route. For example, a TradingView perpetual chart may show a suffix that must be mapped correctly before the MEXC API request is sent.
The order size must satisfy MEXC Futures minimum quantity and step rules. A size that works on another exchange may be rejected by MEXC. Start with a small valid test quantity and check the exchange response in AlgoWay logs.
The margin mode selected in AlgoWay must match the position model you want to use. If account state, symbol settings or route configuration conflict with the requested margin mode, MEXC can reject the order.
The AlgoWay Trade Type setting controls how opposite signals and open exposure are handled:
Full explanation: How AlgoWay handles opposite trading signals.
After the TradingView alert is created, trigger a small test and verify each layer:
If no order appears in MEXC, do not immediately edit the TradingView strategy. First check whether AlgoWay received the webhook. If AlgoWay received it, check the linked IP, permissions, credentials, symbol, quantity, margin mode and exchange response.
If the MEXC API key was created without the AlgoWay server IP in Link IP Address, the route is not ready for stable AlgoWay automation. Open MEXC API Management and confirm that the key has the correct linked IP.
If the linked IP belongs to another server or was copied incorrectly, MEXC can reject AlgoWay API requests even when the Access Key and Secret Key are correct. Compare the IP in MEXC with the current AlgoWay server IP shown in your dashboard.
If Order Placing is not enabled under Futures permissions, MEXC can reject order creation. Check the MEXC API permissions before changing the TradingView alert.
If order view permission is missing, status checks and response verification can fail. Enable the required Futures order detail permission for the webhook route.
The Secret Key may only be displayed once. If it was not saved, create a new dedicated API key and update the MEXC credentials in AlgoWay.
This guide is for MEXC Futures / Perpetual automation. Spot permissions and Futures permissions are separate. A Spot-only API key is not enough for this route.
TradingView must send one valid JSON object. Broken commas, missing quotes, invalid placeholders or plain text can stop the automation before MEXC receives anything. See: How to fix AlgoWay webhook Error 415.
Check whether the TradingView ticker matches the symbol expected by the AlgoWay MEXC route and MEXC Futures API.
The order size must satisfy MEXC Futures minimums and quantity steps. Use a small valid size for the first test.
If available margin is insufficient, leverage is incompatible, or margin mode conflicts with the account state, MEXC can reject the order.
Check the TradingView alert frequency. For many strategy alerts, Once per bar close is safer than intrabar execution.
Yes. For AlgoWay webhook automation, bind the MEXC API key to the AlgoWay server IP shown in your dashboard. The screenshot shows this in the MEXC Link IP Address field.
Paste it into the Link IP Address field on the MEXC API key creation screen before clicking Create.
For this Futures route, use the required Futures trade permissions, including order details access and order placing. Do not enable withdrawal permissions.
Check the linked IP first, then Futures permissions, Access Key, Secret Key, symbol format, quantity, margin mode, leverage and MEXC response in AlgoWay logs.
Use a dedicated key for the AlgoWay route. A dedicated key makes IP binding, permission control and troubleshooting clearer.
To connect TradingView alerts to MEXC Futures with AlgoWay, create a dedicated MEXC API key, enable only the required Futures permissions, bind the key to the AlgoWay server IP address, save the Access Key and Secret Key, create the MEXC webhook in AlgoWay, test the route, copy the webhook URL, and send valid JSON from TradingView.
The IP binding step is mandatory for a clean AlgoWay to MEXC setup. Without the correct linked server IP, webhook delivery can work in TradingView and AlgoWay while the final MEXC API request still fails.