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/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
- Place & Manage Orders
- Fetch Balances, Positions & History
- Manage Deposits & Withdrawals
- Listen To Streams
Reference
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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.2.3.tar.gz.
File metadata
- Download URL: typed_mexc-1.2.3.tar.gz
- Upload date:
- Size: 78.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e67881037d1dd665de06b2218aa4f1c0a6452c387fa73d1bbad0cc828ed275cf
|
|
| MD5 |
ccac282c6ba48f2dddae0b4485b64989
|
|
| BLAKE2b-256 |
3839d8782bfcc15fc72b6bb8ecaabad57da95468abb103a1cce97866e94433ae
|
Provenance
The following attestation bundles were made for typed_mexc-1.2.3.tar.gz:
Publisher:
release-mexc.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_mexc-1.2.3.tar.gz -
Subject digest:
e67881037d1dd665de06b2218aa4f1c0a6452c387fa73d1bbad0cc828ed275cf - Sigstore transparency entry: 2505419889
- Sigstore integration time:
-
Permalink:
tribulnation/typed@8a411a5d9fad6a869268afdd26013865623e8c68 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-mexc.yml@8a411a5d9fad6a869268afdd26013865623e8c68 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file typed_mexc-1.2.3-py3-none-any.whl.
File metadata
- Download URL: typed_mexc-1.2.3-py3-none-any.whl
- Upload date:
- Size: 202.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bff63312170eee8bd0f0a05aad6ed9601a39b173b719cec59717559d3a91c78
|
|
| MD5 |
35587ac35d16e171d3107f83e395caa1
|
|
| BLAKE2b-256 |
d6fcab336e21a06768e6d3296805a3b2732e66ed7c554a9d84645e690dda822f
|
Provenance
The following attestation bundles were made for typed_mexc-1.2.3-py3-none-any.whl:
Publisher:
release-mexc.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_mexc-1.2.3-py3-none-any.whl -
Subject digest:
9bff63312170eee8bd0f0a05aad6ed9601a39b173b719cec59717559d3a91c78 - Sigstore transparency entry: 2505420822
- Sigstore integration time:
-
Permalink:
tribulnation/typed@8a411a5d9fad6a869268afdd26013865623e8c68 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-mexc.yml@8a411a5d9fad6a869268afdd26013865623e8c68 -
Trigger Event:
pull_request
-
Statement type: