WIP
A simple telegram bot to retrieve stock info from Yahoo API. Kabushiki is a japanese word for stock market
Using the telegram-bot-ruby wrapper for Telegram API.
Execute:
shell
$ bundle
- Change config/watch.yaml.sample to config/watch.yaml
- Add the name 'BOT_NAME' and token 'TOKEN' to the enviroment variables. Obtain them from BotFather
Execute:
shell
$ ruby bot.rb
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
/help
: shows the commands available
/list
: gives stocks available in this bot
/rate <currency code><currency code>
: get currency rate and chart using 3-digit currency code. (example: /rate usdeur
)
/stock <ticker>
: states the last traded price of one stock counter. (example: /stock GOOG
)
/charts <tag>
: (expert mode) depicts the graphical %change of some of the matching SG stocks and STI. (example: /charts bank
)
/stat <ticker>
: (expert mode) provides details about the stock counter (example: /stat GOOG
)
- Write test for new commands