A slack bot for getting cryptocurrency prices from GDAX exchange
-
Register for a slack workspace (you need to be admin of that workspace) visit https://slack.com/create
Once completed the registration move to step 2 -
Create a new slack app, visit https://api.slack.com/apps?new_app=1
- Configure your new app and bundle it with a bot user
- Copy your Bot user OAuth access token, you will need it to make your code talk to the bot after this setup
- Define an environment variable for OAuth access token in a terminal on your local machine
export SLACK_BOT_TOKEN='your bot user access token here'
At this point, you should be authorized to use the Slack RTM and Web APIs as a bot user.
- Clone this repo locally
- From the root directory of this repo, install the slack client pip install slackclient
- source activate (as usual)
- python gdaxbot.py
At this point, your script will be able to establish a connection with RTM API
- Get the slack client for your Mac/windows/linux
or you can also access the web application your-workspace.slack.com - Invite the bot to a channel of your choice using command /invite @gdaxbot or directly access the bot under apps section
- Type something and see how the bot responds.
Soon you will discover the right commands to give to the @gdaxbot.
- Add support for more features and not just getting latest price for currencies
- Add user auth to access data within slack
- Coinbase wallet access? Maybe.