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

Use autocomplete instead of documentation.

from mexc import MEXC

async with MEXC.new() as client:
  account = await client.spot.account()
  print(account['balances'][0]['asset'])

Why Typed MEXC?

  • 🎯 Precise Types: Strong typing throughout, so your editor can help before runtime does.
  • ✅ Automatic Validation: Catch upstream API changes earlier, where they are easier to debug.
  • ⚡ Async First: Built for concurrent, network-heavy workflows.
  • 🔒 Safer Usage: Typed inputs and explicit errors reduce avoidable mistakes.
  • 🎨 Better DX: Clear spot / futures routing and stream surfaces.
  • 📦 Practical Extras: Pagination helpers and streams where they actually help.

Package Shape

This package intentionally follows the way MEXC itself is split:

  • MEXC.spot for spot market data, trading, user data, wallet methods, and spot streams
  • MEXC.futures for futures market data, futures user data, and futures streams

Current limitation:

  • futures trading REST methods are not available in the MEXC API

Installation

pip install typed-mexc

Documentation

Read the docs

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.0.0.tar.gz (45.4 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.0.0-py3-none-any.whl (79.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_mexc-1.0.0.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for typed_mexc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3a758d29170524bab47b651c88f50e343fabf22e95a32bd6f31a40dd0a55bb09
MD5 55ef751056ecd0dbbd248fd05140cc50
BLAKE2b-256 d1ba1a9cf8e91d4db94d6d22eee394b738ce98356cc3484f587140557a095b39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: typed_mexc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 79.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for typed_mexc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 911c2e5468d35db474d5fb5d9c350ea4baddab03ed8b9324e22ce82c581a960c
MD5 ca9873e6718249a2d2f436bf6b4155ed
BLAKE2b-256 553c5519db829ba780f35bba0a61d8f66fcc0e753afa0e5df0d6a1fcfd348803

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