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:
- MEXC Account - Create at mexc.com
- KYC Verification - Complete identity verification for API access
- Enable 2FA - Required for API key creation
- TradeStaq Account - Sign up at tradestaq.com
Step 1: Access API Management
- Log in to mexc.com
- Click your profile icon in the top right
- Navigate to API Management
- Or go directly: mexc.com/user/openapi
Step 2: Create API Key
- Click Create API or + Create
- Enter a note/label:
TradeStaq Trading Bot - Complete 2FA verification (Google Auth, SMS, or Email)
- 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
| Permission | Status | Purpose |
|---|---|---|
| Read | Required | View balances and orders |
| Trade | Required | Place and cancel orders |
| Withdraw | Not Needed | Never 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:
- API Key - Your public key (visible anytime)
- 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
- Go to TradeStaq Dashboard
- Click Exchanges → Add Exchange
- Select MEXC from the list
- Enter your credentials:
| Field | Value |
|---|---|
| Name | Give it a memorable name (e.g., "MEXC Main") |
| API Key | Paste your API Key |
| API Secret | Paste your Secret Key |
| Account Type | Select Spot or Futures |
- Click Connect Exchange
Step 6: Verify Connection
After connecting:
- Check the status shows Active (green indicator)
- Verify your balance is displayed correctly
- Test by viewing available trading pairs
Supported Features
| Feature | Spot | Futures |
|---|---|---|
| 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
| Type | Maker | Taker |
|---|---|---|
| Spot | 0% | 0.1% |
| Futures | 0.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:
- Spot API: github.com/mxcdevelop/APIDoc
- Futures API: contract.mexc.com/api
Next Steps
- Paper Trading - Practice risk-free
- Creating a Bot - Set up your first bot
- Custom Strategies - Write trading strategies
- API Permissions - Detailed permission guide
Strategies available on MEXC
Deploy any of these 12 automated strategies on MEXC.