Skip to main content

Listen to fills & position updates on Woo X

Project description

woostream

Stream fills & position updates from Woo X.

Installation

PyPI

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:

Screen Shot 2023-04-27 at 13 29 58

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

woostream-0.1.7.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

woostream-0.1.7-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page