Connect TradingView → MEXC (Perpetual Futures) via AlgoWay

Execute your TradingView strategy signals as real orders on MEXC using a secure webhook pipeline through AlgoWay.

How to connect TradingView to MEXC

Prerequisites

  • MEXC account with Futures / Perpetual trading enabled.
  • AlgoWay account with access to the Webhooks dashboard.
  • TradingView plan that supports webhook alerts.
For security, link your MEXC API key to the AlgoWay server IP shown in your dashboard. Do not enable withdrawal permissions.

Step 1 — Create MEXC API Key

1

Open API Management in your MEXC account and click Create New API Key.

MEXC Create New API Key screen with Futures permissions and linked IP
Create a new MEXC API key. Enable only the Futures permissions required for AlgoWay and link the AlgoWay IP.
2

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
3

Under Futures permissions enable:

  • View Order Details
  • Order Placing
4

Accept the API risk reminder and click Create.

5

Copy both Access Key and Secret Key. The secret is displayed only once.

MEXC API key created successfully modal showing Access Key and Secret Key
Save your MEXC Access Key and Secret Key immediately. The secret key will not be shown again.
Do not enable withdrawal-related permissions for AlgoWay. Keep the API key limited to trading usage only.

Step 2 — Add Webhook in AlgoWay

1

In AlgoWay Dashboard open Add Trial Webhook or Add Main Webhook.

AlgoWay Add Trial Webhook form filled for MEXC
Set Platform = MEXC, Market Type = Futures/Perpetual, choose your Margin Mode and Trade Type, then paste your API credentials.

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
Save the webhook. AlgoWay will create a unique webhook entry for your MEXC connection.

Step 3 — Test Webhook in AlgoWay

1

Open Webhook Logs in AlgoWay and click Test Webhook.

AlgoWay Send Test Webhook modal for MEXC
Select your MEXC webhook and prepare a small test order.
2

Fill the test form with:

  • Symbol
  • Quantity
  • Action = Buy or Sell
  • Close Side if needed for hedge mode
3

You can also use optional fields such as SL Price, TP Price, Stop Loss, Take Profit, and Trailing Pips.

4

Click Send and verify that the test order appears in your MEXC Futures account.

Step 4 — Copy Webhook URL

1

Open Dashboard → Your Webhooks in AlgoWay.

AlgoWay dashboard showing MEXC webhook entry
Find the row where Platform is MEXC and copy the webhook UUID / URL.
2

Click the webhook UUID or the copy action to copy your full AlgoWay webhook URL.

Your webhook URL is unique. Use your own URL only and do not expose it publicly.

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}}"
}
TradingView will automatically replace {{ticker}}, {{strategy.order.contracts}}, {{strategy.market_position}}, and {{close}} when the alert is triggered.
AlgoWay TradingView alert sample JSON modal for MEXC
Copy the MEXC JSON template from AlgoWay and paste it into the TradingView alert message field.
TradingView alert edit message window with MEXC JSON
The TradingView message field must contain valid JSON for AlgoWay to route the order correctly.

Step 6 — Create TradingView Alert

1

Create or edit your TradingView strategy alert on the chart you want to automate.

TradingView Notifications section with Webhook URL enabled for AlgoWay
Enable Webhook URL in TradingView notifications and paste your AlgoWay webhook URL.
2

In Notifications enable Webhook URL and paste the AlgoWay MEXC webhook link from Step 4.

3

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.
If the order is not created, check API permissions, linked IP address, webhook URL, JSON format, and the TradingView alert condition.

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.
© AlgoWay — Automated trading via webhooks. This guide is provided for educational purposes. Trading involves risk.