A fully typed, validated async client for the MEXC spot and futures APIs.
- Documentation: https://tribulnation.com/typed/mexc
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/mexc
from typed_mexc import MEXC
async with MEXC.new(public=True) as client:
candles = await client.spot.http.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.get('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
- Place & Manage Orders
- Fetch Balances, Positions & History
- Manage Deposits & Withdrawals
- Listen To Streams
Reference
Design Philosophy
Typed MEXC follows the principles outlined in this blog post.
Details matter. Developer experience matters.
License
MIT — see LICENSE.
Metadata
Release files for typed-mexc 2.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typed_mexc-2.3.0.tar.gz | 87.7 kB | With provenance | Details for typed_mexc-2.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typed_mexc-2.3.0-py3-none-any.whl | Python 3 | none | any | Details for typed_mexc-2.3.0-py3-none-any.whl |
Total release size: 309.9 kB
Release files / typed_mexc-2.3.0.tar.gz
| Download URL | typed_mexc-2.3.0.tar.gz |
|---|---|
| Size | 87.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e275fffee1e9c00c94c9651b3bcd4486531a0fa7e54460e02b3cd0ade7559e95
|
|
BLAKE2b-256 checksum How to use checksums |
a2a6f1d5f537936434b51675b8e98274d99eaede353d4b8c235c01a788f627fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / typed_mexc-2.3.0-py3-none-any.whl
| Download URL | typed_mexc-2.3.0-py3-none-any.whl |
|---|---|
| Size | 222.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f757a1fe249b6e990d4cbb9b7fc9d8911c06b11a8e39886d2fb33399549e82d0
|
|
BLAKE2b-256 checksum How to use checksums |
e0e0fd1b2f3ef3eaed67624d13e5488dfc3f0f6d73014955abf36f32c5fe57ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logSecurity for typed-mexc 2.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for typed_mexc-2.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.