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.0.tar.gz (74.3 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.0-py3-none-any.whl (193.6 kB view details)

Uploaded Python 3

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

Hashes for typed_mexc-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1acc443e1766c96ea8e202c97b9a150c5ab919861ff094ce6e192a5ff0973e29
MD5 a9c9fae1f8f8b21fbd624c7188625554
BLAKE2b-256 c1ab6c69d427584ef3a519d3e8b1d4f3c4e7bdaf194e97e9a8dace3fc2e96a51

See more details on using hashes here.

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

Hashes for typed_mexc-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 435dd172f7b887a26e665776dd161c7d37843ce0674af11bde5a192a39d1295a
MD5 a6a59bff380f6cacc218f045910afead
BLAKE2b-256 762e621199f3b54e6eae3b3357bc498d5f48fd73883db07b02751b7eb0ab9ef5

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