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['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

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.3.tar.gz (78.7 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.3-py3-none-any.whl (202.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_mexc-1.2.3.tar.gz
  • Upload date:
  • Size: 78.7 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.3.tar.gz
Algorithm Hash digest
SHA256 e67881037d1dd665de06b2218aa4f1c0a6452c387fa73d1bbad0cc828ed275cf
MD5 ccac282c6ba48f2dddae0b4485b64989
BLAKE2b-256 3839d8782bfcc15fc72b6bb8ecaabad57da95468abb103a1cce97866e94433ae

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: typed_mexc-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 202.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9bff63312170eee8bd0f0a05aad6ed9601a39b173b719cec59717559d3a91c78
MD5 35587ac35d16e171d3107f83e395caa1
BLAKE2b-256 d6fcab336e21a06768e6d3296805a3b2732e66ed7c554a9d84645e690dda822f

See more details on using hashes here.

Provenance

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

1.2.4

2 files

This release

1.2.3 This release

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