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.

  • 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 MexcClient, 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.1.7.tar.gz (16.2 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.1.7-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiomexc-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5ed9e1b8f179bc27caee8ec92e3c181f97afd8d97c989d0587753b019f45f13a
MD5 7d4996a07a9c30c480da84db337f2be6
BLAKE2b-256 05a8553f09f1bac5eb3884b69908cfa8cfec6b72163657c7d60adedadda47fe8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aiomexc-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ca5e185a60ffb17efc2de4c42a3bf7a3d84a0e9e57df666040b4c309b3830e38
MD5 0425d4aad22a8665f54aa767f15f36a4
BLAKE2b-256 bc87b2e8d28f8e2c126cd115f2b07ac0e4d6d5acdd04975c83d633f3132601e5

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