Skip to content

A slack bot for getting cryptocurrency prices from GDAX exchange

License

Notifications You must be signed in to change notification settings

jasmeetsinghbhatia/gdaxbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gdaxbot

A slack bot for getting cryptocurrency prices from GDAX exchange

Pre requisite stuff

  1. 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

  2. Create a new slack app, visit https://api.slack.com/apps?new_app=1

screen shot 2018-01-20 at 3 51 30 pm

screen shot 2018-01-20 at 3 52 16 pm

  1. Configure your new app and bundle it with a bot user

screen shot 2018-01-20 at 4 06 33 pm

  1. Copy your Bot user OAuth access token, you will need it to make your code talk to the bot after this setup

screen shot 2018-01-20 at 4 08 07 pm

  1. 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.

Running the bot and using it inside the Slack client

  1. Clone this repo locally
  2. From the root directory of this repo, install the slack client pip install slackclient
  3. source activate (as usual)
  4. python gdaxbot.py

At this point, your script will be able to establish a connection with RTM API screen shot 2018-01-20 at 6 21 39 pm

Ready to ask @gdaxbot ??

  1. Get the slack client for your Mac/windows/linux
    or you can also access the web application your-workspace.slack.com
  2. Invite the bot to a channel of your choice using command /invite @gdaxbot or directly access the bot under apps section
  3. Type something and see how the bot responds.
    Soon you will discover the right commands to give to the @gdaxbot.

screen shot 2018-01-20 at 6 00 39 pm

Next Steps

  1. Add support for more features and not just getting latest price for currencies
  2. Add user auth to access data within slack
  3. Coinbase wallet access? Maybe.

About

A slack bot for getting cryptocurrency prices from GDAX exchange

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages