Video
Watch the MEXC API setup walkthrough
Create your MEXC account
Register on MEXC and sign in. Spot trading through the API does not require KYC, but the account must be able to trade.
Open API Management and grant Spot trading
Open API Management. The create form is on the page itself — tick Spot → Trade → Trade, which is the permission that lets TradeAdapter place and cancel orders.
- Add Futures → Trade → Order Placing only if you route futures
- Leave Withdraw and Transfer off — an automation key never needs them
- Each account can hold up to 30 API keys
Name the key and link the TradeAdapter IP
Fill in Notes — it is required — and paste the TradeAdapter address into Link IP Address. MEXC states it plainly on this screen: a key that is not linked to an IP is valid for 90 days only.
- Up to 20 IP addresses per key, separated by commas
- Five days before a key expires you can extend it by another 90 days from My API Key → Action → Renew
35.75.198.16
Save API credentials securely
Accept the risk reminder, click Create and confirm by email. Copy the access key and secret key immediately — the secret is shown only once and cannot be retrieved afterwards.
Allow the symbols you plan to trade
MEXC restricts which pairs an API key may trade. Configure the allowed spot symbols from My API Key → Trading Pairs → Set, then continue to page 2 for TradingView to MEXC webhook setup.