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
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.2.12.tar.gz
(20.4 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.2.12-py3-none-any.whl
(35.3 kB
view details)
File details
Details for the file aiomexc-0.2.12.tar.gz.
File metadata
- Download URL: aiomexc-0.2.12.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eeefa76065ca5850cb4599949d796f2d6fc769b96476d40cbaaa78d6c3b7189
|
|
| MD5 |
dfbbf2dbb8ff032fca29751bab9bf744
|
|
| BLAKE2b-256 |
379143678001a1e431e880e8977a0b45e347e1eb20b06abf7644896a7cc37a65
|
File details
Details for the file aiomexc-0.2.12-py3-none-any.whl.
File metadata
- Download URL: aiomexc-0.2.12-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba2ce46fe818234e48c5eeb12df495f6be323b3494ce9e0b9f6f3499c13773a3
|
|
| MD5 |
18558e12feb60e4deae5a68af3d616c4
|
|
| BLAKE2b-256 |
32e87bad819f2c75bccdbc8874762fa8d8e7e990242333b25f477bc5c301365e
|