A fully typed, validated async client for the MEXC APIs.
Project description
A fully typed, validated async client for the MEXC spot and futures APIs.
- Documentation: https://mexc.tribulnation.com
- Source Code: https://github.com/tribulnation/mexc
from mexc import MEXC
async with MEXC.public() as client:
candles = await client.spot.market.candles(symbol='BTCUSDT', interval='1m', limit=5)
stream = await client.futures.streams.market.ticker('BTC_USDT')
print(candles[-1][4])
async for ticker in stream:
print(ticker['lastPrice'])
break
Why Typed MEXC?
- 🎯 Precise Types: Typed endpoint inputs and responses.
- ✅ Runtime Validation: Validated responses by default.
- ⚡ Async First: HTTP and WebSocket subscriptions.
- 📚 Full API Surface:
client.spot,client.futures, and stream groups for both spot and futures.
Installation
pip install typed-mexc
How To
- API Keys Setup
- Fetch Market Data
- Fetch Balances, Positions & History
- Place & Manage Spot Orders
- Listen To Streams
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
typed_mexc-1.1.1.tar.gz
(79.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
typed_mexc-1.1.1-py3-none-any.whl
(198.0 kB
view details)
File details
Details for the file typed_mexc-1.1.1.tar.gz.
File metadata
- Download URL: typed_mexc-1.1.1.tar.gz
- Upload date:
- Size: 79.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e823e6feb12c0a2d4619130e1c09145d68070fcc159e1432e91820da78f322b2
|
|
| MD5 |
777444a32cc1abef4db26225cd402f24
|
|
| BLAKE2b-256 |
1434f0f8b95fc79f403d991f26d0aca2104377a61d2a245fef50ab7990747d06
|
File details
Details for the file typed_mexc-1.1.1-py3-none-any.whl.
File metadata
- Download URL: typed_mexc-1.1.1-py3-none-any.whl
- Upload date:
- Size: 198.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d92a82ba345c6482fb85f98fa0f4a15844a9b1edfe56c00f1451633c2274430
|
|
| MD5 |
5851fc9f1cd014fd917aef4b100723f9
|
|
| BLAKE2b-256 |
ed8772cc218eb456474c16fcc4a79d00f1cae5738e1f8dfd8c4a8799ca857485
|