Skip to main content

Client MEXC Exchange

A simple python client for the MEXC exchange. Open, unofficial project, intended to consume all endpoints provided by Exchange documentation.

Summary

Pypi

see the project on Pypi by accessing the link.

Dependencies

This project uses some libraries for its operation as well as tests and linter for code organization. Its dependencies are:

how to use

A simple code example for client use is:

from MexcClient.client import MexcClient

client = MexcClient("API_KEY", "API_SECRET")
client.server_time()

functions implemented so far

Func Method Endpoint Params Section
check_connection GET /api/v3/ping None Market Data Endpoints
server_time GET /api/v3/time None Market Data Endpoints
exchange_info GET /api/v3/exchangeInfo None Market Data Endpoints
order_book_of_symbol GET /api/v3/depth symbol: str, limit: int Market Data Endpoints
recent_trades_list GET /api/v3/trades symbol: str, limit: int Market Data Endpoints
old_trade_lookup GET /api/v3/historicalTrades symbol: str, limit: int Market Data Endpoints
kline_data GET /api/v3/klines symbol: str, interval: EnumKlineInterval, start_time: int, end_time: int, limit: int = 500 Market Data Endpoints
current_average_price GET /api/v3/avgPrice symbol: str Market Data Endpoints
create_order_test POST /api/v3/order/test symbol: str, side: EnumOrderSide, _type: EnumOrderType, timestamp: int, quantity: str, quote_order_quantity: str, price: str, new_client_order_id: str, recv_window: int Spot Account/Trade
create_new_order POST /api/v3/order symbol: str, side: EnumOrderSide, _type: EnumOrderType, timestamp: int, quantity: str, quote_order_quantity: str, price: str, new_client_order_id: str, recv_window: int Spot Account/Trade
load_balances GET /api/v3/account None Spot Account/Trade
load_balance_by_symbol GET /api/v3/account symbol: str Spot Account/Trade
cancel_order DELETE /api/v3/order symbol: str, order_id: str, timestamp: int Spot Account/Trade
cancel_all_open_orders_on_a_symbol DELETE /api/v3/openOrders symbols: list, timestamp: int Spot Account/Trade

installation

To install just run the following command:

pip install mexcapiclient

Python version

python version used in this project was:

Release files for mexcapiclient 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mexcapiclient 0.1.9
File Size Uploaded
mexcapiclient-0.1.9.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mexcapiclient 0.1.9
File Interpreter ABI Platform
mexcapiclient-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / mexcapiclient-0.1.9.tar.gz

Download URL mexcapiclient-0.1.9.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3373163e655c0a963b129b12d3e10c94312c4371553a7dd72d34eb398f6b4341
BLAKE2b-256 checksum
How to use checksums
582aca0b9fba30dd102fd7473daa8b59af41c8489da891fd577d54c16c4d01d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1024-azure

Release files / mexcapiclient-0.1.9-py3-none-any.whl

Download URL mexcapiclient-0.1.9-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1528ccdc67f6d06673b2581319d7cf1dc0988000c10232224286ce3831a62b3f
BLAKE2b-256 checksum
How to use checksums
84c318ed06cadfad0049e8ce09c160b639d5482a48b541803b6bfdd4c4121973
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1024-azure

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

3 release files

0.1.2

3 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page