Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/makarworld/pymexc
Browse files Browse the repository at this point in the history
  • Loading branch information
makarworld committed Feb 2, 2024
2 parents 0bf1a3d + ebb06e5 commit 39aaeb7
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 134 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Github last commit date](https://img.shields.io/github/last-commit/makarworld/pymexc.svg?label=Updated&logo=github&cacheSeconds=600)](https://github.com/makarworld/pymexc/commits)

# pymexc
`pymexc` is an unofficial Python library for interacting with the [MEXC crypto exchange](https://www.mexc.com/). It provides a simple and intuitive API for making requests to the [MEXC API endpoints](https://mxcdevelop.github.io/apidocs/spot_v3_en/#introduction).
`pymexc` is an unofficial Python library for interacting with the [MEXC crypto exchange](https://www.mexc.com/). It provides a simple and intuitive API for making requests to the [MEXC API endpoints](https://mexcdevelop.github.io/apidocs/spot_v3_en/#introduction).

Most of the code was generated with ChatGPT, if you see an error, write to issues.

Expand Down Expand Up @@ -68,7 +68,7 @@ while True:


# Documentation
You can find the official documentation for the MEXC API [here](https://mxcdevelop.github.io/apidocs/spot_v3_en/#introduction).
You can find the official documentation for the MEXC API [here](https://mexcdevelop.github.io/apidocs/spot_v3_en/#introduction).

# License
This library is licensed under the MIT License.
4 changes: 2 additions & 2 deletions examples/subscribe_public_deal_30_symbols_per_websocket.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This example for use subscribe method for many parameters at one topic.
# Goal - subscribe websocket with topic public.deals to all symbols from /api/v3/ticker/24hr (https://mxcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics)
# Goal - subscribe websocket with topic public.deals to all symbols from /api/v3/ticker/24hr (https://mexcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics)
# Use 30 symbols per each websocket connection
from pymexc import spot

Expand All @@ -8,7 +8,7 @@ def handle_message(msg: dict):


# get list of symbols from /api/v3/ticker/24hr
# https://mxcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics
# https://mexcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics
ticker_24h = spot.HTTP().ticker_24h()

# create list with only symbols
Expand Down
Loading

0 comments on commit 39aaeb7

Please sign in to comment.