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.11.tar.gz (20.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.11-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiomexc-0.2.11.tar.gz
Algorithm Hash digest
SHA256 f3da7b96db04997645c8c8a0b633b47c0f145e207d32c082eb0dcc47a40a9fe8
MD5 7633c85050ec992ffdbcacede111992b
BLAKE2b-256 c736abe5553d372008036790c4229763dc92e4005c188ffb1a1ee5db73ea71c5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aiomexc-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 dc35aec82dd5961dacf5b0ceaf980bcb21d06ede5bf8e3bfd9a5e1872919431f
MD5 6508519e0d3bc4799fa94c9594e259a7
BLAKE2b-256 3a89509363826d3a664833a3d05e5c5124a793bb7cd0133df2a96784ecc6d0e0

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