MEXC
Coming SoonCrypto — Major Exchanges
connectorType: "mexc"Crypto exchange with extensive token listings
Connection Architecture
MEXC
WebSocket / REST→
Connector
libs/exchange-mexc→
Provider
:8081/api→
Detector
Advisor
Studio
The connector receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.
Technologies
Transport
WebSocketREST
Authentication
API Key + SecretData Format
JSONBest for
- MEXC is the primary connector choice for new token listing strategies, including first-minute price discovery, listing-gap arbitrage, and basket rotation into freshly-launched assets.
- It suits high-throughput altcoin scanners that need to monitor hundreds of low-cap pairs for breakout conditions.
- Barfinex users building token-launch signal pipelines or running multi-exchange listing monitors will find MEXC's breadth of coverage essential for completeness.
Connect via code
1Environment variables (.env)
MEXC_API_KEY=your_key_here MEXC_API_SECRET=your_secret_here
2Connector configuration
// config/config.provider.json
{
"provider": {
"connectors": [
{
"connectorType": "mexc",
"enabled": true,
"key": "${MEXC_API_KEY}",
"secret": "${MEXC_API_SECRET}",
"markets": [
{ "marketType": "spot", "symbols": [{ "name": "BTCUSDT" }] }
],
"subscriptions": [
{ "type": "PROVIDER_MARKETDATA_CANDLE", "symbols": ["BTCUSDT"], "intervals": ["min1", "h1"], "active": true },
{ "type": "PROVIDER_MARKETDATA_TRADE", "symbols": ["BTCUSDT"], "active": true },
{ "type": "PROVIDER_MARKETDATA_ORDERBOOK", "symbols": ["BTCUSDT"], "active": true }
]
}
]
}
}3Verify and query data
# Verify connection curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \ https://localhost:8081/api/exchanges/runtime-proof # Candles (last 7 days) curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \ "https://localhost:8081/api/candles/mexc/spot/BTCUSDT/h1?days=7"
Available via Barfinex API
/api/candles/mexc/...
/api/trades/mexc/...
/api/orderbook/mexc/...
/api/account/mexc/...
/api/symbols/mexc/...
/api/assets/mexc/...
Studio graphical setup — in development, coming in the next release.
Important
Permissions required: Read + Trade.
MEXC uses HMAC-SHA256 signed requests.
Note that MEXC imposes strict restrictions on API access by jurisdiction — users in the United States are not permitted to use the MEXC API.
Spot rate limits are relatively generous (typically up to 500 requests/sec for public endpoints), but futures endpoints have tighter limits.
MEXC futures are on a separate contract account and require distinct API activation.
Always verify the listing status of target pairs before deploying a strategy, as MEXC delists tokens frequently.
Supported Markets
SpotFutures
Websitewww.mexc.com
Connect in Studio(soon)
Exchange Website