An open API service indexing awesome lists of open source software.

https://github.com/aptyp4uk1337/mexc-api-sdk

🔷 Unofficial MEXC API SDK - Get your access to MEXC Futures & Spot APIs during maintenance. PHP · Node.js · Python · Go · Rust · Java · C# libraries
https://github.com/aptyp4uk1337/mexc-api-sdk

api bypass mexc mexc-api mexc-api-sdk mexc-bypass mexc-futures mexc-futures-api mexc-sdk mexc-spot mexc-spot-api trading under-maintainance

Last synced: 4 days ago
JSON representation

🔷 Unofficial MEXC API SDK - Get your access to MEXC Futures & Spot APIs during maintenance. PHP · Node.js · Python · Go · Rust · Java · C# libraries

Awesome Lists containing this project

README

          




PHP
Python
Node.js
Go
Rust
Java
C#

# 🔷 Unofficial MEXC API SDK

This is an unofficial *MEXC API SDK* with support for *futures* and *spot* trading, as well as many other methods, providing full trading and account access, even if some routes are marked as "[Under maintenance](https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance)".




---

## 🎖 Features

- ⚡ Blazing fast _(200 - 400 ms)_
- 🔐 No third-party requests
- 🌐 Works on mainnet & testnet
- 🔀 Support for batch requests
- 🥷🏻 Multi-accounting and proxy support _(HTTP/HTTPS/SOCKS5)_
- 🫂 Ability to work with multiple accounts at the same time
- ⚙️ Compatible with any programming language
- ⌨️ Simple PHP, Python, Go, Rust, Java & Node.js library

---

### ❓ FAQ

> 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](#-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](#-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?
- In the test version and subscription mode, all requests go through our server. When purchasing the source code, all requests go directly.

> 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](/docs/risk_control_en.md).

---

### ⏱️ Rate Limit Test



---

### 💥 Node.js example

```JS
import { MexcBypass } from './MexcBypass.js';

const client = new MexcBypass('YOUR_MEXC_WEB_KEY', true, null);

try {
const results = await client.batch({
assets: () => client.getFuturesAssets({ currency: 'USDT' }),
positions: () => client.getFuturesOpenPositions(),
ticker_btc: () => client.getFuturesTickers({ symbol: 'BTC_USDT' }),
});

console.log('USDT Balance:', results.assets?.data?.availableBalance ?? 'N/A');
console.log('Open positions:', results.positions?.data ?? []);
console.log('BTC Price:', results.ticker_btc?.data?.lastPrice ?? 'N/A');

const order = await client.createFuturesOrder({
symbol: 'BTC_USDT',
side: 1,
type: 5,
open_type: 1,
vol: 1,
leverage: 10
});

console.log('Order created:', JSON.stringify(order, null, 2));
} catch (error) {
console.error('Error:', error);
}
```

---

### 📖 Available Methods

The library supports **50+ endpoints** including:

- Placing, modifying and canceling orders on spot and futures
- Accessing wallet and asset data
- Managing open positions, leverage and margin
- Retrieving contract info and price feeds

📚 **[Full method documentation](/docs#-available-methods)** is available in `/docs/methods/`

---

### ▶ Live preview: placing and cancelling a futures order

👀 Watch Live Preview

### 💌 Contact me