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.http.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.

Release files for typed-mexc 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typed-mexc 2.1.0
File Size Uploaded
typed_mexc-2.1.0.tar.gz 87.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-mexc 2.1.0
File Interpreter ABI Platform
typed_mexc-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 309.2 kB

Release files / typed_mexc-2.1.0.tar.gz

Download URL typed_mexc-2.1.0.tar.gz
Size 87.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8b919ed527445495b0e900378542482f8d44c99294ad5fb499c0ebec6c970558
BLAKE2b-256 checksum
How to use checksums
fba88ec8cfe6a97a3e17c7f31df7ed68a25cc486a5f1d570ad90ba8a1b123f1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / typed_mexc-2.1.0-py3-none-any.whl

Download URL typed_mexc-2.1.0-py3-none-any.whl
Size 221.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c266eafb4e29d85d9079788d7f9d881a24b9ee8c0f22e528c673f9227bfc955
BLAKE2b-256 checksum
How to use checksums
999c6418617ffaabfadf73c29a8c2dda4069cd3662832e1b6c478e687f10732d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release history Release notifications | RSS feed

2.2.0

2 release files

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page