Listen to fills & position updates on Woo X
Project description
woostream
Stream fills & position updates from Woo X.
Installation
woostream is available as a Python package on PyPI and can be installed as:
pip install woostream
How to run
woostream is executable as a command line utility:
# Example command, outputting to the shell
python -m woostream \
--network testnet \
--application-id 6a9b8f2b-3969-4c96-b127-b6649b7d976d \
--api-public-key r0Ln7xEfpO/lEubPuEE7ug== \
--api-secret-key XTXL4TUAN6WLCPLXAIYNYTL2MPLP
Learn how to get application-id, api-public-key and api-secret-key here.
network can be either mainnet or testnet; the former points to x.woo.org, whilst the latter to x.staging.woo.org.
Telegram forwarding
It's possible to output to a Telegram channel in addition to the shell, by specifying telegram-token and telegram-chat-id.
Learn how to get a telegram-token here.
You can get a telegram-chat-id by logging into web.telegram.org/k, selecting a group chat you control and fetching the chat ID from the URL bar:
Here the chat ID is -855125383.
Then replace the command-line arguments accordingly:
python -m woostream
--network testnet \
--application-id 6a9b8f2b-3969-4c96-b127-b6649b7d976d \
--api-public-key r0Ln7xEfpO/lEubPuEE7ug== \
--api-secret-key XTXL4TUAN6WLCPLXAIYNYTL2MPLP \
--telegram-token [TELEGRAM_TOKEN] \
--telegram-chat-id [TELEGRAM_CHAT_ID]
Note that that Telegram's API has a rate limit of 30 messages per second - in any case, messages will continue to be broadcasted to the shell.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file woostream-0.1.7.tar.gz.
File metadata
- Download URL: woostream-0.1.7.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/21.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e2d0ef21359c3637b135ed0fb85a0db1e4326827a4ec969f700394605a0ecee
|
|
| MD5 |
a53f0bb1cf154d7669b62da80e84796b
|
|
| BLAKE2b-256 |
18864ffb1af864760588c410e8f9c132170a793d3047d59d10b681fe1811b32b
|
File details
Details for the file woostream-0.1.7-py3-none-any.whl.
File metadata
- Download URL: woostream-0.1.7-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/21.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc2e1c4db6c88c6d2552b39bf052111af4c32024a6e9ab7d705d2752266e169
|
|
| MD5 |
5ff3d5403baee0a2f8c07e7a57f92f57
|
|
| BLAKE2b-256 |
2dd18aeea4ec61186039473eb682aa13cdcbfeb8563447ac31125273b4ab5166
|