Skip to content

Commit 0fcdebe

Browse files
committed
4.0.0
1 parent ce31f32 commit 0fcdebe

File tree

5 files changed

+21
-23
lines changed

5 files changed

+21
-23
lines changed

README.md

+16-18
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,20 @@
77

88
last update:2019/10/16
99

10+
Version:4.0.0
11+
12+
:exclamation::exclamation::exclamation:
13+
update websocket-client==0.56
14+
:exclamation:
15+
please uninstall all websocket-client and update up websocket-client==0.56
16+
```
17+
sudo pip uninstall websocket-client
18+
sudo pip install websocket-client==0.56
19+
```
20+
:exclamation:
21+
1022
Version:3.9.8
23+
1124
add [reset_practice_balance](#resetpracticebalance) api
1225

1326

@@ -130,28 +143,13 @@ from iqoptionapi.api import IQOptionAPI
130143

131144
## Can not loging problem
132145

133-
134-
### problem 1
135-
this problem i have been pull request to websocket-client
136-
137-
If you get this problem
138-
139-
```bash
140-
error from callback <bound method WebsocketClient.on_message of <iqoptionapi.ws.client.WebsocketClient object at 0x7f174fdb5e48>>: on_message() missing 1 required positional argument: 'message'
141-
File "/usr/lib/python3.7/site-packages/websocket/_app.py", line 343, in _callback
142-
callback(*args)
143-
```
144-
#### fix way 1(install old websocket-client version)
146+
#### fix way 1
145147
```bash
146148
sudo pip3 uninstall websocket-client
147-
sudo pip3 install websocket-client==0.47.0
149+
sudo pip3 install websocket-client==0.56
148150
```
149151

150-
#### fix way 2(install my fix version on latest)
151-
```bash
152-
sudo pip3 install -U git+git://github.com/Lu-Yi-Hsun/websocket-client.git
153-
```
154-
---
152+
155153

156154
### problem 2
157155

iqoptionapi/stable_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def nested_dict(n, type):
1919

2020

2121
class IQ_Option:
22-
__version__ = "3.9.8"
22+
__version__ = "4.0.0"
2323

2424
def __init__(self, email, password):
2525
self.size = [1, 5, 10, 15, 30, 60, 120, 300, 600, 900, 1800,

iqoptionapi/ws/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def dict_queue_add(self,dict,maxdict,key1,key2,key3,value):
3636
else:
3737
#del mini key
3838
del dict[key1][key2][sorted(dict[key1][key2].keys(), reverse=False)[0]]
39-
def on_message(self, wss, message): # pylint: disable=unused-argument
39+
def on_message(self, message): # pylint: disable=unused-argument
4040
"""Method to process websocket messages."""
4141
logger = logging.getLogger(__name__)
4242
logger.debug(message)

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pylint
22
requests
3-
websocket-client==0.47
3+
websocket-client==0.56

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
setup(
55
name="iqoptionapi",
6-
version="3.9.8",
6+
version="4.0.0",
77
packages=find_packages(),
8-
install_requires=["pylint","requests","websocket-client==0.47"],
8+
install_requires=["pylint","requests","websocket-client==0.56"],
99
include_package_data = True,
1010
description="Best IQ Option API for python",
1111
long_description="Best IQ Option API for python",

0 commit comments

Comments
 (0)