From 0fcdebec13ecf293a5539c71960bb985d85da898 Mon Sep 17 00:00:00 2001 From: lu-yi-hsun Date: Wed, 16 Oct 2019 01:49:03 +0800 Subject: [PATCH] 4.0.0 --- README.md | 34 ++++++++++++++++------------------ iqoptionapi/stable_api.py | 2 +- iqoptionapi/ws/client.py | 2 +- requirements.txt | 2 +- setup.py | 4 ++-- 5 files changed, 21 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index eb656347..025c41e2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,20 @@ last update:2019/10/16 +Version:4.0.0 + +:exclamation::exclamation::exclamation: +update websocket-client==0.56 +:exclamation: +please uninstall all websocket-client and update up websocket-client==0.56 +``` +sudo pip uninstall websocket-client +sudo pip install websocket-client==0.56 +``` +:exclamation: + Version:3.9.8 + add [reset_practice_balance](#resetpracticebalance) api @@ -130,28 +143,13 @@ from iqoptionapi.api import IQOptionAPI ## Can not loging problem - -### problem 1 -this problem i have been pull request to websocket-client - -If you get this problem - -```bash -error from callback >: on_message() missing 1 required positional argument: 'message' - File "/usr/lib/python3.7/site-packages/websocket/_app.py", line 343, in _callback - callback(*args) -``` -#### fix way 1(install old websocket-client version) +#### fix way 1 ```bash sudo pip3 uninstall websocket-client -sudo pip3 install websocket-client==0.47.0 +sudo pip3 install websocket-client==0.56 ``` -#### fix way 2(install my fix version on latest) -```bash -sudo pip3 install -U git+git://github.com/Lu-Yi-Hsun/websocket-client.git -``` ---- + ### problem 2 diff --git a/iqoptionapi/stable_api.py b/iqoptionapi/stable_api.py index c61656ba..f15afdad 100644 --- a/iqoptionapi/stable_api.py +++ b/iqoptionapi/stable_api.py @@ -19,7 +19,7 @@ def nested_dict(n, type): class IQ_Option: - __version__ = "3.9.8" + __version__ = "4.0.0" def __init__(self, email, password): self.size = [1, 5, 10, 15, 30, 60, 120, 300, 600, 900, 1800, diff --git a/iqoptionapi/ws/client.py b/iqoptionapi/ws/client.py index 17c39325..75d54483 100644 --- a/iqoptionapi/ws/client.py +++ b/iqoptionapi/ws/client.py @@ -36,7 +36,7 @@ def dict_queue_add(self,dict,maxdict,key1,key2,key3,value): else: #del mini key del dict[key1][key2][sorted(dict[key1][key2].keys(), reverse=False)[0]] - def on_message(self, wss, message): # pylint: disable=unused-argument + def on_message(self, message): # pylint: disable=unused-argument """Method to process websocket messages.""" logger = logging.getLogger(__name__) logger.debug(message) diff --git a/requirements.txt b/requirements.txt index d4a2d35a..7c92b1b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pylint requests -websocket-client==0.47 \ No newline at end of file +websocket-client==0.56 \ No newline at end of file diff --git a/setup.py b/setup.py index a272a33d..0ec3cb7a 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,9 @@ setup( name="iqoptionapi", - version="3.9.8", + version="4.0.0", packages=find_packages(), - install_requires=["pylint","requests","websocket-client==0.47"], + install_requires=["pylint","requests","websocket-client==0.56"], include_package_data = True, description="Best IQ Option API for python", long_description="Best IQ Option API for python",