-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
28 lines (16 loc) · 697 Bytes
/
README
File metadata and controls
28 lines (16 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Cryptowatch Websocket client
Simple python client for cryptowat.ch websocket streams.
### Setup
Install required packages in virtual environment
Pull protobuf protocols submodule
Compile protocols
setup.sh script can do it all for you.
If you prefer to use your own virtual environment - replace path to virtual environment in VENV variable.
If you prefer different python binary - replace it PYTHON_EX variable.
### Example
```python
example_client = WebsocketClient(api_key=api_key, api_secret=api_secret)
example_client.add_handler('authenticationResult', lambda client, message: client.loger.info(message))
example_client.run()
```
See example/simple_subscribe.py for details.