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.1.tar.gz (79.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.1-py3-none-any.whl (198.0 kB view details)

Uploaded Python 3

File details

Details for the file typed_mexc-1.1.1.tar.gz.

File metadata

  • Download URL: typed_mexc-1.1.1.tar.gz
  • Upload date:
  • Size: 79.8 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.1.tar.gz
Algorithm Hash digest
SHA256 e823e6feb12c0a2d4619130e1c09145d68070fcc159e1432e91820da78f322b2
MD5 777444a32cc1abef4db26225cd402f24
BLAKE2b-256 1434f0f8b95fc79f403d991f26d0aca2104377a61d2a245fef50ab7990747d06

See more details on using hashes here.

File details

Details for the file typed_mexc-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: typed_mexc-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 198.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d92a82ba345c6482fb85f98fa0f4a15844a9b1edfe56c00f1451633c2274430
MD5 5851fc9f1cd014fd917aef4b100723f9
BLAKE2b-256 ed8772cc218eb456474c16fcc4a79d00f1cae5738e1f8dfd8c4a8799ca857485

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