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
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
aiomexc-0.1.7-py3-none-any.whl
(28.0 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ed9e1b8f179bc27caee8ec92e3c181f97afd8d97c989d0587753b019f45f13a
|
|
| MD5 |
7d4996a07a9c30c480da84db337f2be6
|
|
| BLAKE2b-256 |
05a8553f09f1bac5eb3884b69908cfa8cfec6b72163657c7d60adedadda47fe8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca5e185a60ffb17efc2de4c42a3bf7a3d84a0e9e57df666040b4c309b3830e38
|
|
| MD5 |
0425d4aad22a8665f54aa767f15f36a4
|
|
| BLAKE2b-256 |
bc87b2e8d28f8e2c126cd115f2b07ac0e4d6d5acdd04975c83d633f3132601e5
|