Skip to content

Serve cryptocurrency quotes to HipChat or Slack from Flask REST app

License

Notifications You must be signed in to change notification settings

lockefox/slash_coins

Repository files navigation

Show Logo

SlashCoins

Build Status Coverage Status Documentation Status

A REST API for publishing quick /commands for HipChat and Slack rooms. Feed those coinbugs up-to-date quotes for their favorite cryptocoins c/o cryptocompare

Want to use it right now? Point your integration at:

https://lockefox.pythonanywhere.com/coins

Then use /command COINTICKER CURRENCY[optional]

Deploy Your Own

Tools have been included to deploy your own via Docker!

docker build -t slash-coins -f Dockerfile .
docker run -d -p 8000:8000 slash-coins

Customize with docker ENV flags

  • PROSPER_LOGGING__discord_webhook: log error messages to Discord
  • PROSPER_LOGGING__slack_webhook: log error messages to Slack
  • PROSPER_LOGGING__hipchat_webhook: log error messages to HipChat
  • PROSPER_FLASK__port: change outgoing Flask port

Routes

  • /coins: generate a coin quote from cryptocompare
  • /version: see current version/heath status
  • /stocks: get stock quote from Robinhood and relevant news headline

For Developers

Only supports Python 3.6+

pip install -e .
cp slash_coins/app.cfg slash_coins/app_local.cfg
## fill out app secrets in slash_coins/app_local.cfg ##
slash_coin_launcher -v -d --config=slash_coins/app_local.cfg

Install requirements in a virtualenv and use the built-in launcher to run on localhost.

About

Serve cryptocurrency quotes to HipChat or Slack from Flask REST app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages