Skip to main content

A fully typed, validated async client for the MEXC APIs.

Project description

Typed MEXC

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.2.tar.gz (45.5 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.2-py3-none-any.whl (81.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typed_mexc-1.0.2.tar.gz
Algorithm Hash digest
SHA256 656db29d8302244b9378f6bcd7eef84eb1364b02470d8c4ff2f65e521961af1b
MD5 7990c50935fd849a6958bfb9be697aa4
BLAKE2b-256 10f94537cb213c1f66a420c8475767ae99c60ff8bd2587efe4c2cd56957a8179

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typed_mexc-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 602b5fb640628e43cd00a11ed0d5f236cfbd361de1b190f78fcbdd7b20bbd4cd
MD5 75912d70f5522722f0c2e6653e62000b
BLAKE2b-256 8a3a5a6daea307ad64f1898744b17da4194856e3d9f71e17e0726329a00ddcbc

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