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.6.tar.gz (17.7 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.6-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiomexc-0.2.6.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for aiomexc-0.2.6.tar.gz
Algorithm Hash digest
SHA256 904b94408603a7d39b0589b2db4992a8ad904287c815d95a6f833810f8fd108c
MD5 2bbe1769685207c3fe470b5f1011fa4a
BLAKE2b-256 1c8eab13440eb06efc9986f2c2d5fb8ca1a42392c1f289d5fb4dee3013251b7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiomexc-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 31.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for aiomexc-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 077369a48d76e857d10bbcdf6a8ebee699dadcb1c7160c78d1f71f00ed77b9db
MD5 e0babc12b4c672a173eb46e67d47975d
BLAKE2b-256 5476c7eb4fae2c0fb1ff7b800f6546a1745fb15c0499312cce154157b864cad0

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