Connecting MEXC

This guide walks you through connecting your MEXC account to TradeStaq for automated trading.

Overview

MEXC is a leading cryptocurrency exchange offering:

  • Spot Trading - 1,500+ trading pairs
  • Futures Trading - USDT-M perpetual contracts
  • Low Fees - Competitive trading fees
  • High Liquidity - Deep order books
  • Global Access - Available in 170+ countries

Prerequisites

Before connecting MEXC:

  1. MEXC Account - Create at mexc.com
  2. KYC Verification - Complete identity verification for API access
  3. Enable 2FA - Required for API key creation
  4. TradeStaq Account - Sign up at tradestaq.com

Step 1: Access API Management

  1. Log in to mexc.com
  2. Click your profile icon in the top right
  3. Navigate to API Management
  4. Or go directly: mexc.com/user/openapi

Step 2: Create API Key

  1. Click Create API or + Create
  2. Enter a note/label: TradeStaq Trading Bot
  3. Complete 2FA verification (Google Auth, SMS, or Email)
  4. Your API Key will be created

Step 3: Configure API Permissions

MEXC uses a simple permission model. When creating the API key, ensure you:

Required Permissions

PermissionStatusPurpose
ReadRequiredView balances and orders
TradeRequiredPlace and cancel orders
WithdrawNot NeededNever enable for bots

Recommended Settings

  • IP Whitelist: Optional but recommended for security
  • Expiration: Set to "No Expiration" or a long duration

Step 4: Copy API Credentials

After creating the API key, you'll see:

  1. API Key - Your public key (visible anytime)
  2. Secret Key - Shown only once after creation

IMPORTANT: Copy and save the Secret Key immediately. It will not be shown again.

API Key:    mx0vglxxxxxxxxxxxxxxxxxxxxxxxx
Secret Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Step 5: Connect to TradeStaq

  1. Go to TradeStaq Dashboard
  2. Click ExchangesAdd Exchange
  3. Select MEXC from the list
  4. Enter your credentials:
FieldValue
NameGive it a memorable name (e.g., "MEXC Main")
API KeyPaste your API Key
API SecretPaste your Secret Key
Account TypeSelect Spot or Futures
  1. Click Connect Exchange

Step 6: Verify Connection

After connecting:

  1. Check the status shows Active (green indicator)
  2. Verify your balance is displayed correctly
  3. Test by viewing available trading pairs

Supported Features

FeatureSpotFutures
Market Orders
Limit Orders
Stop Orders
Take Profit
Position Management-
Leverage-Up to 200x

Account Types

Spot Account

  • Trade spot markets
  • 1,500+ trading pairs available
  • Immediate settlement

Futures Account

  • USDT-M perpetual contracts
  • Long and short positions
  • Leverage up to 200x
  • Funding rate payments

Note: When selecting account type in TradeStaq, choose the one matching how you want to trade.


Trading Pairs

Popular Spot Pairs

  • BTC/USDT, ETH/USDT, SOL/USDT
  • XRP/USDT, DOGE/USDT, ADA/USDT
  • SHIB/USDT, AVAX/USDT, DOT/USDT

Popular Futures Pairs

  • BTC/USDT:USDT, ETH/USDT:USDT
  • SOL/USDT:USDT, XRP/USDT:USDT
  • Most major cryptocurrencies

Security Best Practices

Do's

  • ✅ Enable all available 2FA methods
  • ✅ Use IP whitelist if you have static IP
  • ✅ Set API key expiration for extra security
  • ✅ Monitor API key usage in MEXC dashboard
  • ✅ Use separate API keys for different bots

Don'ts

  • ❌ Never enable withdrawal permissions
  • ❌ Never share API keys with anyone
  • ❌ Never store keys in plain text files
  • ❌ Never use the same key for multiple services

MEXC-Specific Notes

Trading Fees

TypeMakerTaker
Spot0%0.1%
Futures0.02%0.06%

MEXC offers 0% maker fees on spot, making it excellent for limit orders.

MX Token Benefits

  • Hold MX token for fee discounts
  • Additional benefits in the MEXC ecosystem

Rate Limits

  • API requests are limited per minute
  • TradeStaq handles rate limiting automatically
  • High-frequency strategies may need adjustment

Troubleshooting

API Key Rejected

Solutions:

  • Verify key and secret are copied correctly (no extra spaces)
  • Check API key hasn't expired
  • Ensure API key is activated (some keys require email confirmation)

Permission Errors

Solutions:

  • Verify Trade permission is enabled
  • Check if account has sufficient balance
  • Ensure correct account type (Spot vs Futures)

Balance Not Showing

Solutions:

  • Wait a moment and refresh
  • Check funds are in the correct wallet (Spot vs Futures)
  • Verify API key has Read permission

IP Restriction Error

Solutions:

  • Add TradeStaq's IP addresses to whitelist
  • Or disable IP restrictions for testing
  • Contact support for current IP addresses

Rate Limit Exceeded

Solutions:

  • Reduce bot update frequency
  • Use fewer concurrent bots on same API key
  • Wait a few minutes and retry

API Documentation

For advanced users, MEXC API documentation:


Next Steps