No project description provided
Project description
Client MEXC Exchange
A simple python client for the MEXC exchange. Open, unofficial project, intended to consume all endpoints provided by Exchange documentation.
Summary
Pypi
see the project on Pypi by accessing the link.
Dependencies
This project uses some libraries for its operation as well as tests and linter for code organization. Its dependencies are:
how to use
A simple code example for client use is:
from MexcClient.client import MexcClient
client = MexcClient("API_KEY", "API_SECRET")
client.server_time()
functions implemented so far
| Func | Method | Endpoint | Params | Section |
|---|---|---|---|---|
| check_connection | GET | /api/v3/ping | None | Market Data Endpoints |
| server_time | GET | /api/v3/time | None | Market Data Endpoints |
| exchange_info | GET | /api/v3/exchangeInfo | None | Market Data Endpoints |
| order_book_of_symbol | GET | /api/v3/depth | symbol: str, limit: int | Market Data Endpoints |
| recent_trades_list | GET | /api/v3/trades | symbol: str, limit: int | Market Data Endpoints |
| old_trade_lookup | GET | /api/v3/historicalTrades | symbol: str, limit: int | Market Data Endpoints |
| kline_data | GET | /api/v3/klines | symbol: str, interval: EnumKlineInterval, start_time: int, end_time: int, limit: int = 500 | Market Data Endpoints |
| current_average_price | GET | /api/v3/avgPrice | symbol: str | Market Data Endpoints |
| create_order_test | POST | /api/v3/order/test | symbol: str, side: EnumOrderSide, _type: EnumOrderType, timestamp: int, quantity: str, quote_order_quantity: str, price: str, new_client_order_id: str, recv_window: int | Spot Account/Trade |
| create_new_order | POST | /api/v3/order | symbol: str, side: EnumOrderSide, _type: EnumOrderType, timestamp: int, quantity: str, quote_order_quantity: str, price: str, new_client_order_id: str, recv_window: int | Spot Account/Trade |
| load_balances | GET | /api/v3/account | None | Spot Account/Trade |
| load_balance_by_symbol | GET | /api/v3/account | symbol: str | Spot Account/Trade |
| cancel_order | DELETE | /api/v3/order | symbol: str, order_id: str, timestamp: int | Spot Account/Trade |
| cancel_all_open_orders_on_a_symbol | DELETE | /api/v3/openOrders | symbols: list, timestamp: int | Spot Account/Trade |
installation
To install just run the following command:
pip install mexcapiclient
Python version
python version used in this project was:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file mexcapiclient-0.1.9.tar.gz.
File metadata
- Download URL: mexcapiclient-0.1.9.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1024-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3373163e655c0a963b129b12d3e10c94312c4371553a7dd72d34eb398f6b4341
|
|
| MD5 |
83cb462ae4636d99fce222ecaabce5a3
|
|
| BLAKE2b-256 |
582aca0b9fba30dd102fd7473daa8b59af41c8489da891fd577d54c16c4d01d0
|
File details
Details for the file mexcapiclient-0.1.9-py3-none-any.whl.
File metadata
- Download URL: mexcapiclient-0.1.9-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1024-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1528ccdc67f6d06673b2581319d7cf1dc0988000c10232224286ce3831a62b3f
|
|
| MD5 |
8f2965afbdfc55ebda07690c9ca9f20c
|
|
| BLAKE2b-256 |
84c318ed06cadfad0049e8ce09c160b639d5482a48b541803b6bfdd4c4121973
|