Guide
Does MEXC have an API?
Yes. MEXC has a spot API. You create a key under API Management. It has an API key and a secret key. A TradingView alert can't call the API itself. It posts to Nyria's webhook, and the bot places the order. Nyria connects MEXC with the key and secret. MEXC isn't available to US residents.
Official documentation
Connect MEXC in five steps
- 1
Open API Management
In MEXC, select the profile icon, then API Management.
- 2
Set the permissions
Choose Spot trading. Leave withdrawals off and add a note.
- 3
Create the key
Select Create and complete the security check. Copy the API key and the secret key.
- 4
Connect MEXC in Nyria
Open the MEXC card on Integrations. Paste the API key and the secret key.
- 5
Point TradingView at Nyria
Create a strategy with TradingView as the source. Under Notifications, tick Webhook URL, paste the strategy's URL, then select Apply.
What the API does
- MEXC's API reads the account and places spot orders.
- Each private request carries your API key and a signature.
- MEXC makes the signature from your secret key.
- An account can hold up to 30 keys.
Why an alert can't call it
- A TradingView alert sends a webhook.
- It can't sign a MEXC request.
- Something has to place the order.
- Nyria is that receiver, and it never places an order by itself.
- Your alerts and strategy rules decide every entry and exit.
How Nyria connects MEXC
- You paste the API key and the secret key once.
- Nyria stores both encrypted at rest.
- It reads the account and places and cancels orders.
- It has no feature that moves money.
- Linking an IP address to the key is optional.
What it can't do
- Trade pairs MEXC hasn't opened to API trading. Nyria refuses those alerts.
- Serve US residents. MEXC isn't available to them.
- Move money. Withdrawals stay off.
Questions
- Can a TradingView alert call the MEXC API?
- No. An alert sends a webhook. Nyria receives it and places the order.
- Does Nyria need withdrawals turned on?
- No. Leave withdrawals off.
- Does a MEXC key expire?
- MEXC's docs say a key with no linked IP address expires after 90 days. Linking an IP address avoids that.
- Can I trade every MEXC pair?
- No. MEXC takes API orders only on the pairs it opens to API trading.
- Is MEXC available in the US?
- No. MEXC isn't available to US residents.
- Can I test before using real money?
- Yes. Run the strategy on Nyria Paper first. It's free.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TradingView to MEXC.
- Step by step for one account: how to automate TradingView to Nyria Paper.
- MEXC integration.
Guides
How broker API trading works
What a broker API does and does not do, and the receiver that reads your alerts and places the orders for you.
Read guideHow do I send TradingView webhooks to MEXC?
Paste a Nyria strategy URL into your alert. Nyria places the MEXC order.
Read guideCan Nyria withdraw money from my broker account?
No. Nyria reads balances and sends orders. Your cash stays at your broker.
Read guideWhy does Nyria say MEXC rejected this key?
Copy the API key and secret key again and paste them in.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.