Skip to content

Commit

Permalink
4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lu-Yi-Hsun committed Oct 15, 2019
1 parent ce31f32 commit 0fcdebe
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 23 deletions.
34 changes: 16 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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 <bound method WebsocketClient.on_message of <iqoptionapi.ws.client.WebsocketClient object at 0x7f174fdb5e48>>: 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

Expand Down
2 changes: 1 addition & 1 deletion iqoptionapi/stable_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion iqoptionapi/ws/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pylint
requests
websocket-client==0.47
websocket-client==0.56
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0fcdebe

Please sign in to comment.