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.1.tar.gz (16.6 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.1-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiomexc-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a42dd8ce2009a7179b196a0b3f0e5b9435a349d166568529819655723c30ca2e
MD5 e114d7ee3777ddd4e5dfd5c04583c21a
BLAKE2b-256 22f24dd40d59ffc40cc40741b10ad269dee6fad9e72bbc39215452e90b621eff

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aiomexc-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c44959582b806ee6a6a660f8e57147fe1aa54daad0311ec68e190cd65fed3a
MD5 479bd260d4245b5c6dd931195c55c88b
BLAKE2b-256 577f849b6c4bdc9f81e7fdef7e405d4a2b8b673a909da0eda614eae4188a97cc

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