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.5.tar.gz (17.4 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.5-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiomexc-0.2.5.tar.gz
Algorithm Hash digest
SHA256 710497ce97360c84a8546cfdd011cea7e37501bb726d83fe142a6b8e8a596f4d
MD5 10194fd1e434d9243dfc54af977d857e
BLAKE2b-256 084160e4f2a98bd3867dc2eca3d5d0ff5a7f95e7e794d035b63dc7e9719dedcc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aiomexc-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 68210b63ef7585b051ae26990ece45da882f9e35813ae078f4c4d3653fd6fd02
MD5 2837178ef678112229758c790473dd84
BLAKE2b-256 2ad683619ce42bc59bfb9c401744bd18509d45ab9953c7ee395e1aa2321a5d83

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