File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -45,18 +45,15 @@ Use your imagination.
45
45
# Dependencies
46
46
47
47
# Installation
48
- #### Pypi (most stable)
49
- ``` python
50
- pip install bittrex- websocket- aio
51
- ```
52
- #### Github (master)
48
+
49
+ The library can be installed through Github and PyPi. For the latest updates, use Github.
50
+
53
51
``` python
54
52
pip install git+ https:// github.com/ slazarov/ python- bittrex- websocket- aio.git
55
- ```
56
- #### Github (work in progress branch)
57
- ``` python
58
53
pip install git+ https:// github.com/ slazarov/ python- bittrex- websocket- aio.git@ next - version- number
54
+ pip install bittrex- websocket- aio
59
55
```
56
+
60
57
# Methods
61
58
#### Subscribe Methods
62
59
``` python
@@ -141,10 +138,10 @@ def disable_log():
141
138
142
139
# Message channels
143
140
``` python
144
- def on_public (self , msg ):
141
+ async def on_public (self , msg ):
145
142
# The main channel for all public methods.
146
143
147
- def on_private (self , msg ):
144
+ async def on_private (self , msg ):
148
145
# The main channel for all private methods.
149
146
150
147
def on_error (self , error ):
Original file line number Diff line number Diff line change
1
+ from bittrex_websocket import _logger
1
2
from bittrex_websocket .websocket_client import BittrexSocket
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def _connection_handler(self):
75
75
logger .error ('{}. Initiating reconnection procedure' .format (e .args [0 ]))
76
76
events = []
77
77
for item in self .invokes :
78
- event = SubscribeEvent ([ item ['ticker' ]], item ['invoke' ])
78
+ event = SubscribeEvent (item ['invoke' ], [ item ['ticker' ] ])
79
79
events .append (event )
80
80
# Reset previous connection
81
81
self .invokes , self .connection = [], None
Original file line number Diff line number Diff line change 11
11
12
12
setup (
13
13
name = 'bittrex-websocket-aio' ,
14
- version = '0.0.0.2.2 ' ,
14
+ version = '0.0.0.2.3 ' ,
15
15
author = 'Stanislav Lazarov' ,
16
16
17
17
license = 'MIT' ,
You can’t perform that action at this time.
0 commit comments