Python3 Mexc API wrapper
Project description
mexcpy
Unofficial Mexc exchange API wrapper. Official documentation.
Features
- Market, Spot, Wallet endpoints implementation
- Easy authentication using only api & secret keys
Start
Installation:
pip install mexcpy
Example
from mexcpy import MexcAPI
# Public endpoints example
# All methods return an instance of ResponseAPI class, to get clear data, the json() method must be called
data = MexcAPI.get_server_time().json()
print(data)
# Instead of usind the json() method you can refer to attributes of ResponseAPI class instance
# Attributes like symbol, priceChange, priceChangePercent are adding dynamically after method execution.
# You can find all possible attributes in documentation
data = MexcAPI.get_current_average_price()
print(data.symbol, data.priceChange, data.priceChangePercent)
# Private endpoints example
# These methods require api and secret keys
# You need to create instance of MexcAPI class
mexc = MexcAPI(API_KEY, SECRET_KEY)
result = mexc.get_account_information().json()
print(result)
Public methods
get_server_time()
get_exchange_information()
get_order_book()
get_recent_trades()
get_current_average_price()
get_price_change_statistics()
get_symbol_price_ticker()
get_order_book_ticker()
Private methods
get_account_information()
create_new_order()
cancel_order()
cancel_orders_on_symbol()
check_order_status()
get_current_open_orders()
get_all_orders()
get_account_trade_list()
get_currency_information()
withdraw()
get_deposit_history()
get_withdraw_history()
generate_deposit_address()
get_deposit_address()
universal_transfer()
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 mexcpy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mexcpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3ef4ed581bf0c7ced600b1db4941dcc6d2a691ca582045b141bde4d28714806
|
|
| MD5 |
144898a216b4c60c841a03c747f001e0
|
|
| BLAKE2b-256 |
6964473fe6334c8568ab92a26b670d711cff5e392224937a84b87cf8c4856330
|