From 4ab0f3fea716650a2f07dd4da447b32331e2fdc7 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 9 May 2024 22:25:36 +0200 Subject: [PATCH] removed `binance_je_websocket()` and `jex_com_websocket()` --- CHANGELOG.md | 3 +++ README.md | 2 -- meta.yaml | 2 -- setup.py | 2 +- unicorn_fy/unicorn_fy.py | 28 +--------------------------- 5 files changed, 5 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b61fc39..179d757 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p [How to upgrade to the latest version!](https://unicorn-fy.docs.lucit.tech/readme.html#installation-and-upgrade) ## 0.14.2.dev (development stage/unreleased/unstable) +### Removed +- `binance_je_websocket()` +- `jex_com_websocket()` ## 0.14.2 ### Added diff --git a/README.md b/README.md index 86f763e..68fe968 100644 --- a/README.md +++ b/README.md @@ -96,10 +96,8 @@ logging.getLogger("unicorn_fy") | [Binance Futures Testnet](https://testnet.binancefuture.com) ([API](https://github.com/binance-exchange/binance-official-api-docs)) | [`binance_com_futures_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_com_coin_futures_websocket) | STABLE | | [Binance Coin Futures](https://www.binance.com) ([API](https://github.com/binance-exchange/binance-official-api-docs)) | [`binance_com_coin_futures_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_com_coin_futures_websocket) | NEEDS_YOUR_HELP | | [Binance Coin Futures Testnet](https://testnet.binancefuture.com) ([API](https://github.com/binance-exchange/binance-official-api-docs)) | [`binance_com_coin_futures_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_com_futures_websocket) | NEEDS_YOUR_HELP | -| [Binance Jersey](https://www.binance.je) ([API](https://github.com/binance-jersey/binance-official-api-docs/)) | [`binance_je_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_je_websocket) | STABLE | | [Binance US](https://www.binance.us) ([API](https://github.com/binance-us/binance-official-api-docs)) | [`binance_us_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_us_websocket) | STABLE | | [Binance TR](https://www.trbinance.com) ([API](https://www.trbinance.com/apidocs)) | [`trbinance_com_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.trbinance_com_websocket) | STABLE | -| [Binance JEX](https://www.jex.com) ([API](https://jexapi.github.io/api-doc/spot.html#change-log)) | [`jex_com_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.jex_com_websocket) | STABLE | | [Binance DEX](https://www.binance.org) ([API](https://docs.binance.org/)) | [`binance_org_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_org_websocket) | NEEDS_YOUR_HELP | | [Binance DEX Testnet](https://testnet.binance.org) ([API](https://docs.binance.org/)) | [`binance_org_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_org_websocket) | NEEDS_YOUR_HELP | diff --git a/meta.yaml b/meta.yaml index 70df95c..7322739 100644 --- a/meta.yaml +++ b/meta.yaml @@ -146,10 +146,8 @@ about: | [Binance Futures Testnet](https://testnet.binancefuture.com) ([API](https://github.com/binance-exchange/binance-official-api-docs)) | [`binance_com_futures_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_com_coin_futures_websocket) | STABLE | | [Binance Coin Futures](https://www.binance.com) ([API](https://github.com/binance-exchange/binance-official-api-docs)) | [`binance_com_coin_futures_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_com_coin_futures_websocket) | NEEDS_YOUR_HELP | | [Binance Coin Futures Testnet](https://testnet.binancefuture.com) ([API](https://github.com/binance-exchange/binance-official-api-docs)) | [`binance_com_coin_futures_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_com_futures_websocket) | NEEDS_YOUR_HELP | - | [Binance Jersey](https://www.binance.je) ([API](https://github.com/binance-jersey/binance-official-api-docs/)) | [`binance_je_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_je_websocket) | STABLE | | [Binance US](https://www.binance.us) ([API](https://github.com/binance-us/binance-official-api-docs)) | [`binance_us_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_us_websocket) | STABLE | | [Binance TR](https://www.trbinance.com) ([API](https://www.trbinance.com/apidocs)) | [`trbinance_com_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.trbinance_com_websocket) | STABLE | - | [Binance JEX](https://www.jex.com) ([API](https://jexapi.github.io/api-doc/spot.html#change-log)) | [`jex_com_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.jex_com_websocket) | STABLE | | [Binance DEX](https://www.binance.org) ([API](https://docs.binance.org/)) | [`binance_org_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_org_websocket) | NEEDS_YOUR_HELP | | [Binance DEX Testnet](https://testnet.binance.org) ([API](https://docs.binance.org/)) | [`binance_org_websocket(stream_data_json)`](https://unicorn-fy.docs.lucit.tech//unicorn_fy.html?highlight=binance_com#unicorn_fy.unicorn_fy.UnicornFy.binance_org_websocket) | NEEDS_YOUR_HELP | diff --git a/setup.py b/setup.py index dea8a28..8b39ae3 100644 --- a/setup.py +++ b/setup.py @@ -85,7 +85,7 @@ long_description_content_type="text/markdown", license='LSOSL - LUCIT Synergetic Open Source License', install_requires=['ujson', 'requests', 'Cython'], - keywords='binance, api, exchange, unify, binance-dex, binance-chain, rest-api, websockets', + keywords='binance, api, exchange, unicornfy, binance-dex, binance-chain, rest-api, websockets', project_urls={ 'Documentation': 'https://unicorn-fy.docs.lucit.tech', 'Wiki': 'https://github.com/LUCIT-Systems-and-Development/unicorn-fy/wiki', diff --git a/unicorn_fy/unicorn_fy.py b/unicorn_fy/unicorn_fy.py index 901af0d..2669022 100755 --- a/unicorn_fy/unicorn_fy.py +++ b/unicorn_fy/unicorn_fy.py @@ -57,11 +57,9 @@ class UnicornFy(object): - Binance-com-coin_futures - Binance-com-margin - Binance-com-isolated_margin - - Binance.je - Binance.us - trBinance.com - Binance.org - - Jex.com """ VERSION = "0.14.2.dev" @@ -161,18 +159,6 @@ def binance_com_coin_futures_websocket(stream_data_json): exchange="binance.com-coin_futures", show_deprecated_warning=False) - @staticmethod - def binance_je_websocket(stream_data_json): - """ - unicorn_fy binance.je (Jersey) raw_stream_data - - :param stream_data_json: The received raw stream data from the Binance websocket - :type stream_data_json: json - - :return: dict - """ - return UnicornFy.binance_websocket(stream_data_json, exchange="binance.je", show_deprecated_warning=False) - @staticmethod def binance_us_websocket(stream_data_json): """ @@ -218,7 +204,7 @@ def binance_websocket(stream_data_json, exchange="binance", show_deprecated_warn logger.debug("UnicornFy->binance_websocket(" + str(stream_data_json) + ")") if show_deprecated_warning is True: logger.warning("Using `UnicornFy.binance_websocket()` is deprecated, use " - "`UnicornFy.binance_com_websocket()` or `UnicornFy.binance_je_websocket()` instead!") + "`UnicornFy.binance_com_websocket()` instead!") if UnicornFy.is_json(stream_data_json) is False: return stream_data_json @@ -1261,18 +1247,6 @@ def binance_futures_websocket(stream_data_json, exchange="binance.com-futures", logger.debug("UnicornFy->binance_futures_websocket(" + str(unicorn_fied_data) + ")") return unicorn_fied_data - @staticmethod - def jex_com_websocket(stream_data_json): - """ - unicorn_fy jex.com raw_stream_data - - :param stream_data_json: The received raw stream data from the Binance websocket - :type stream_data_json: json - - :return: dict - """ - return UnicornFy.binance_websocket(stream_data_json, exchange="jex.com", show_deprecated_warning=False) - @staticmethod def get_latest_release_info(): """