This unofficial MEXC Futures API library bypasses current maintenance restrictions in the official endpoints, allowing full trading and account access even when some routes are marked "Under maintenance".
Note
The source code of the library is not distributed openly. You can get access by contacting me on Telegram: @aptyp4uk1337_bot
You can test the opening of a position yourself: https://mexc-bypass.xyz/
Demo file: ./demo/app.js
- Blazing fast
- No third-party requests
- Works on mainnet & testnet
- Fully open source
- Multi-accounting and proxy support
- Compatible with any programming language
- Simple PHP, Python & Node.js library
- Free updates
Does it fully support placing, cancelling, and tracking all types of futures orders?
- Yes, including market, limit, stop-limit, and trigger orders.
How many orders can be sent per second, per minute, per day?
- See the results of the Rate Limit Test for 200 requests.
Can the bypass API fetch account info, open positions, and adjust leverage/margin?
- Yes. For more info, look at available methods section.
Is the library provided as open source or as compiled/obfuscated code?
- Currently, everything is open-sourced, nothing is obfuscated.
Can the library be used with multiple accounts, or is the authentication tied to a single one?
- No limitation on number of accounts.
Does it use anything third-party to make those requests?
- No.
Will I get a risk control ban for using the library?
- In my experience - no. For more information on risk control, see here π‘οΈ Risk Control on MEXC.
Demo file: ./demo/rate_limit_test.js
import { MexcClient } from './MexcClient.js';
const client = new MexcClient({
apiKey: 'YOUR_API_KEY',
isTestnet: false,
proxy: 'socks5://user:pass@127.0.0.1:1080', // socks5://user:pass@host:port || http://user:pass@host:port
});
import { MexcClient } from './MexcClient.js';
const client = new MexcClient({ apiKey: 'YOUR_API_KEY', isTestnet: true });
const order = await client.createOrder({
symbol: 'BTC_USDT',
type: 5,
side: 1,
openType: 2,
vol: 15,
leverage: 25
});
Method | Description |
---|---|
getCustomerInfo | Get customer info |
getUserInfo | Get user info |
getWallet | Get user wallet info |
getContract | Get contract info |
getIndexPrice | Get contract index price |
getFairPrice | Get contract fair price |
getAssets | Get all informations of user's asset |
getAsset | Get the user's single currency asset information |
getAssetTransferRecords | Get the user's asset transfer records |
getPositionsHistory | Get the userβs history position information |
getOpenPositions | Get the user's current holding position |
getOpenOrders | Get the user's current pending order |
getOrdersHistory | Get all of the user's historical orders |
createOrder | Create order |
cancelOrders | Cancel the orders |
cancelAllOrders | Cancel all uncompleted orders under a contract |
cancelOrderWithExternalId | Cancel the order according to the external order ID |
getTriggerOrders | Gets the trigger order list |
createTriggerOrder | Trigger order |
cancelTriggerOrders | Cancel the trigger order |
cancelAllTriggerOrders | Cancel all trigger orders |
getStopLimitOrders | Get the Stop-Limit order list |
cancelStopLimitOrders | Cancel the Stop-Limit trigger order |
cancelAllStopLimitOrders | Cancel all Stop-Limit price trigger orders |
getRiskLimits | Get risk limits |
changeMargin | Increase or decrease margin |
getLeverage | Get leverage |
changeLeverage | Switch leverage |
getPositionMode | Get position mode |
changePositionMode | Change position mode |
closeAllPositions | Close all positions |