Prerequisites
- MEXC account with Futures / Perpetual trading enabled.
- AlgoWay account with access to the Webhooks dashboard.
- TradingView plan that supports webhook alerts.
Step 1 — Create MEXC API Key
Open API Management in your MEXC account and click Create New API Key.
Fill in the form:
- Notes: any name you prefer, for example connector
- Linked IP Address: add the AlgoWay server IP, for example
103.241.67.174
Under Futures permissions enable:
- View Order Details
- Order Placing
Accept the API risk reminder and click Create.
Copy both Access Key and Secret Key. The secret is displayed only once.
Step 2 — Add Webhook in AlgoWay
In AlgoWay Dashboard open Add Trial Webhook or Add Main Webhook.
Required fields
- Source: TradingView
- Platform: MEXC
- Quantity Multiplier: as needed, for example Absolute 1
- Market Type: Futures/Perpetual
- Margin Mode: Cross or Isolated
- Trade Type: Reverse / Netting, Hedge, or your preferred mode
- API Key: your MEXC Access Key
- API Secret: your MEXC Secret Key
Step 3 — Test Webhook in AlgoWay
Open Webhook Logs in AlgoWay and click Test Webhook.
Fill the test form with:
- Symbol
- Quantity
- Action = Buy or Sell
- Close Side if needed for hedge mode
You can also use optional fields such as SL Price, TP Price, Stop Loss, Take Profit, and Trailing Pips.
Click Send and verify that the test order appears in your MEXC Futures account.
Step 4 — Copy Webhook URL
Open Dashboard → Your Webhooks in AlgoWay.
Click the webhook UUID or the copy action to copy your full AlgoWay webhook URL.
Step 5 — TradingView JSON Payload
Message (JSON)
Use the following JSON in the TradingView alert message:
{
"platform_name": "mexc",
"ticker": "{{ticker}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.market_position}}",
"price": "{{close}}"
}
{{ticker}}, {{strategy.order.contracts}}, {{strategy.market_position}}, and {{close}} when the alert is triggered.
Step 6 — Create TradingView Alert
Create or edit your TradingView strategy alert on the chart you want to automate.
In Notifications enable Webhook URL and paste the AlgoWay MEXC webhook link from Step 4.
Click Apply, then Create to save the alert.
Verification & Logs
- Trigger a small test alert first.
- Open Webhook Logs in AlgoWay and verify the incoming JSON and the exchange response.
- Check your MEXC Futures account to confirm that the order or position was created correctly.
FAQ / Notes
- Passphrase: MEXC does not require a passphrase in this setup. Only API Key and Secret are used.
- Permissions: for MEXC Futures, View Order Details and Order Placing are sufficient.
- Spot Permissions: not required for this Futures integration.
- IP Restriction: the API key should be linked to the AlgoWay IP shown in your dashboard.
- Trade Type: choose the mode in AlgoWay that matches your strategy logic: Reverse / Netting, Hedge, or another supported mode.
- Security: keep the Secret Key private and regenerate the key if it was exposed.