Commit 646e99b
Fix OrderBook class and require channels argument for WebsocketClient (danpaquin#381)
* Fix broken OrderBook by automatically connecting to 'full' channel
Resolves an issue where the OrderBook class does not receive data
since the underlying WebsocketClient it uses does not connect to
a channel on Coinbase's WS feed.
The OrderBook class now automatically specifies the 'full' channel
on init in the super() call to the WebsocketClient __init__
* Require WS channels to be specified for WebsocketClient
Coinbase's API rejects connections that don't specify which channels
to connect to. This commit changes the `channels` arg for the
WebsocketClient class into a required keyword argument with no default
value.
See: https://www.python.org/dev/peps/pep-3102/
Closes danpaquin#380
Closes danpaquin#3711 parent 0a9dbd8 commit 646e99b
2 files changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
23 | 36 | | |
24 | 37 | | |
25 | 38 | | |
| |||
0 commit comments