Skip to main content

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.

PyPI version Python versions Docs License



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

Reference

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typed_mexc-1.1.2-py3-none-any.whl (186.5 kB view details)

Uploaded Python 3

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

Hashes for typed_mexc-1.1.2.tar.gz
Algorithm Hash digest
SHA256 705aa215d425ff28b6d9e2a6b388270a860027381892e14d47183a97efe8afe3
MD5 633692c89eed8180c9c5a7a77e978188
BLAKE2b-256 dfa190567bd12f1d7430eed1ab76492a7388922c731c7b16b16872cd2a05f2bd

See more details on using hashes here.

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

Hashes for typed_mexc-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ae4a4e909def214ab89e3bcb3f45edc779ce42da2fe6eef009cf704dd0b3cc
MD5 8e8c67620abe33c03507c3687354aad5
BLAKE2b-256 b8d82e8b94ce58681ce22187624df8857ab4bca9c40fe0dbd504e86be415b6d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page