Skip to content

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. 1

    Open API Management

    In MEXC, select the profile icon, then API Management.

  2. 2

    Set the permissions

    Choose Spot trading. Leave withdrawals off and add a note.

  3. 3

    Create the key

    Select Create and complete the security check. Copy the API key and the secret key.

  4. 4

    Connect MEXC in Nyria

    Open the MEXC card on Integrations. Paste the API key and the secret key.

  5. 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

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.