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.0.tar.gz
(74.3 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.0-py3-none-any.whl
(193.6 kB
view details)
File details
Details for the file typed_mexc-1.1.0.tar.gz.
File metadata
- Download URL: typed_mexc-1.1.0.tar.gz
- Upload date:
- Size: 74.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1acc443e1766c96ea8e202c97b9a150c5ab919861ff094ce6e192a5ff0973e29
|
|
| MD5 |
a9c9fae1f8f8b21fbd624c7188625554
|
|
| BLAKE2b-256 |
c1ab6c69d427584ef3a519d3e8b1d4f3c4e7bdaf194e97e9a8dace3fc2e96a51
|
File details
Details for the file typed_mexc-1.1.0-py3-none-any.whl.
File metadata
- Download URL: typed_mexc-1.1.0-py3-none-any.whl
- Upload date:
- Size: 193.6 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 |
435dd172f7b887a26e665776dd161c7d37843ce0674af11bde5a192a39d1295a
|
|
| MD5 |
a6a59bff380f6cacc218f045910afead
|
|
| BLAKE2b-256 |
762e621199f3b54e6eae3b3357bc498d5f48fd73883db07b02751b7eb0ab9ef5
|