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.3.tar.gz
(45.4 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.3.tar.gz.
File metadata
- Download URL: typed_mexc-1.0.3.tar.gz
- Upload date:
- Size: 45.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ccc80c990c7037cde328b0530cf0e4ec4c442c8d2516ddbaed13d7e7fb65ef6
|
|
| MD5 |
13075bf418c32e22fa58d2dfd324f70b
|
|
| BLAKE2b-256 |
b118423a738213763df785f7a0e1634abbb3033d8d4db0f2d456490c3aae77e0
|
File details
Details for the file typed_mexc-1.0.3-py3-none-any.whl.
File metadata
- Download URL: typed_mexc-1.0.3-py3-none-any.whl
- Upload date:
- Size: 80.9 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 |
a3030a87c3353c1c8485bf8450cc6fd66a9bfe778628fc46db959f5b2207c615
|
|
| MD5 |
2cd836caec94aee68f92b2f7cd3d80eb
|
|
| BLAKE2b-256 |
ee26685b87b928b93f2776336ccac77a17ec4221f2156688f0190ea2523b3bc5
|