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.2.tar.gz
(67.8 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.2-py3-none-any.whl
(186.5 kB
view details)
File details
Details for the file typed_mexc-1.1.2.tar.gz.
File metadata
- Download URL: typed_mexc-1.1.2.tar.gz
- Upload date:
- Size: 67.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
705aa215d425ff28b6d9e2a6b388270a860027381892e14d47183a97efe8afe3
|
|
| MD5 |
633692c89eed8180c9c5a7a77e978188
|
|
| BLAKE2b-256 |
dfa190567bd12f1d7430eed1ab76492a7388922c731c7b16b16872cd2a05f2bd
|
File details
Details for the file typed_mexc-1.1.2-py3-none-any.whl.
File metadata
- Download URL: typed_mexc-1.1.2-py3-none-any.whl
- Upload date:
- Size: 186.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8ae4a4e909def214ab89e3bcb3f45edc779ce42da2fe6eef009cf704dd0b3cc
|
|
| MD5 |
8e8c67620abe33c03507c3687354aad5
|
|
| BLAKE2b-256 |
b8d82e8b94ce58681ce22187624df8857ab4bca9c40fe0dbd504e86be415b6d5
|