A fully typed, validated async client for the MEXC APIs.
Project description
Typed MEXC
A fully typed, validated async client for the MEXC spot and futures APIs
Use autocomplete instead of documentation.
from mexc import MEXC
async with MEXC.new() as client:
account = await client.spot.account()
print(account['balances'][0]['asset'])
Why Typed MEXC?
- 🎯 Precise Types: Strong typing throughout, so your editor can help before runtime does.
- ✅ Automatic Validation: Catch upstream API changes earlier, where they are easier to debug.
- ⚡ Async First: Built for concurrent, network-heavy workflows.
- 🔒 Safer Usage: Typed inputs and explicit errors reduce avoidable mistakes.
- 🎨 Better DX: Clear
spot/futuresrouting and stream surfaces. - 📦 Practical Extras: Pagination helpers and streams where they actually help.
Package Shape
This package intentionally follows the way MEXC itself is split:
MEXC.spotfor spot market data, trading, user data, wallet methods, and spot streamsMEXC.futuresfor futures market data, futures user data, and futures streams
Current limitation:
- futures trading REST methods are not available in the MEXC API
Installation
pip install typed-mexc
Documentation
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.0.1.tar.gz
(45.1 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
File details
Details for the file typed_mexc-1.0.1.tar.gz.
File metadata
- Download URL: typed_mexc-1.0.1.tar.gz
- Upload date:
- Size: 45.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93eaa4203a8d98083827d33987585fa72422a710f088ac432cfc176c6f97e00d
|
|
| MD5 |
207c8b4282205a5a72a3a5d5b183aeca
|
|
| BLAKE2b-256 |
88640556ff7d6b3fec50d8f9b28a7e80f964ede7747745dc7574d4b4dfc90a7e
|
File details
Details for the file typed_mexc-1.0.1-py3-none-any.whl.
File metadata
- Download URL: typed_mexc-1.0.1-py3-none-any.whl
- Upload date:
- Size: 80.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d57b08f555b6b4afab78d3026c70658ade2ad68913db550c1a4330cee9104f40
|
|
| MD5 |
f78b74ed6234e1b43ae82cab32397b55
|
|
| BLAKE2b-256 |
c028825d574f9dd72f27faba7072099b0e2fc0f04d2a669330fd63bb44d8628f
|