API Overview
Mexc (formerly MXC) is a popular global cryptocurrency exchange known for listing new tokens early and offering competitive trading fees.
API Features
- REST API: Spot and futures trading
- WebSocket API: Real-time market data
- Rate Limits: 20 requests/second
- Trading Pairs: 1,000+ trading pairs
- Early Token Listings: Access to new tokens
Why Choose Mexc API?
- Zero trading fees for spot trading (maker/taker)
- Early access to new token listings
- High liquidity for major pairs
- Simple API for beginners
Python Example
import requests
import hashlib
import hmac
import time
api_key = "YOUR_API_KEY"
api_secret = "YOUR_API_SECRET"
def sign(message, secret):
return hmac.new(secret.encode(), message.encode(), hashlib.sha256).hexdigest()
timestamp = str(int(time.time() * 1000))
method = "GET"
path = "/api/v3/account"
query = ""
signature = sign(f"{timestamp}{method}{path}{query}", api_secret)
headers = {
"ApiKey": api_key,
"Timestamp": timestamp,
"Signature": signature
}
Best For
- Trading new token listings
- Zero-fee trading strategies
- High-frequency trading
- Altcoin trading