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 typed_mexc import MEXC

async with MEXC.new(public=True) 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-2.0.0.tar.gz (76.0 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-2.0.0-py3-none-any.whl (203.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typed_mexc-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ce3b92d61832bd3cf00a7333ac710aca21fe24197ab40fe958fc58207b1432b0
MD5 dbe941b15b44482939a4ed0aa813ed78
BLAKE2b-256 d3cb2a2dea489679686ba58605b9da858f3d3a53c93a1425801e18c4a0f22bbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_mexc-2.0.0.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-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: typed_mexc-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 203.0 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-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cae4ce5091c7969a23c274783e31294364e9fe8f0a1ce83d31cf4e83e463f999
MD5 84c86db305b99b3c6af3c367bd86b83a
BLAKE2b-256 d8eb6c8fef4ee0467364d1ef911f1e887a757b427af9ab33fdb1313c0181c09f

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_mexc-2.0.0-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

This release

2.0.0 This release

2 files

1.2.4

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