Skip to main content

Asynchronous MEXC API wrapper

Project description

aiomexc

Pretty and fully asynchronous wrapper for MEXC API.

Using with HTTP API

You can start use wrapper very fast.

Install

pip install aiomexc

You can install with protobuf dependencies to use WebSocket API

pip install aiomexc[ws]
  • Import and initialize client.
from aiomexc import MexcClient

client = MexcClient()
  • Call needed method and get response as dataclass model.
await client.get_ticker_price(symbol="BTCUSDT")
  • To call methods that requires auth (e.g. open order), you can pass your credentils globally to client instance.
from aiomexc import Credentials

client = MexcClient(credentials=Credentials(access_key="mx0.....", secret_key="......"))

Or if you need to make requests from different API credentials you can pass credentials to every method calls.

await client.query_order(credentials=Credentials(access_key="mx0.....", secret_key="......"))

TODO:

  • Support all methods

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiomexc-0.2.16.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiomexc-0.2.16-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file aiomexc-0.2.16.tar.gz.

File metadata

  • Download URL: aiomexc-0.2.16.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aiomexc-0.2.16.tar.gz
Algorithm Hash digest
SHA256 29e01924da8ae81891d3e984b7ef30d34aa3b8092ef5c9c2fe20310982ee9564
MD5 ff270285236c134af8278008b9be55ef
BLAKE2b-256 c86699e5cdaf64eadbd423c62903ce209d1f5ce7e85f22431efde185a2af3840

See more details on using hashes here.

File details

Details for the file aiomexc-0.2.16-py3-none-any.whl.

File metadata

  • Download URL: aiomexc-0.2.16-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aiomexc-0.2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 285f5305c245ee6718b419a9f4e36f7191dad0becb6f4197bfdc3bd952a2a8b4
MD5 a6b4edf66cf2d58f361b7aeda9a7a418
BLAKE2b-256 644f2e12322d77e84e02626728964816de582945b6bf7958049ab469d091043f

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