Skip to main content

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.get('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

Design Philosophy

Typed MEXC follows the principles outlined in this blog post.

Details matter. Developer experience matters.

License

MIT — see LICENSE.

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.2.4.tar.gz (78.9 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.2.4-py3-none-any.whl (202.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_mexc-1.2.4.tar.gz
  • Upload date:
  • Size: 78.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_mexc-1.2.4.tar.gz
Algorithm Hash digest
SHA256 c0591086a6ef917cda46b5cc0c9218908f5affe85ae76210240843f48397255d
MD5 7925b04efd0f39346efb271734280163
BLAKE2b-256 731045612141b860bf5804bcac1284fb1373c428f09883bd1cee525611ce4f47

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_mexc-1.2.4.tar.gz:

Publisher: release-mexc.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: typed_mexc-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 202.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_mexc-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0fec23abe03082c0a3993f0211aa089a2969357fc02bb9db3bf2b95a701dccec
MD5 625f71b3e33e9d1c3e78ba40591ff7f2
BLAKE2b-256 6172a4314d09761d9df7ea5e35563303f94ac9c1041ad1d804e335475096cc98

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_mexc-1.2.4-py3-none-any.whl:

Publisher: release-mexc.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2.0.0

2 files

This release

1.2.4 This release

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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