maubot-ticker/README.md

27 lines
1.0 KiB
Markdown
Raw Normal View History

2021-01-08 02:07:50 +00:00
a simple maubot module that responds with financial data about stock price or cryptocurrency exchange rate.
To install, please see the [standard maubot plugin installation instructions](https://github.com/maubot/maubot/wiki/Usage#adding-a-plugin)
2021-01-08 02:07:50 +00:00
note: this module depends on having an api key for the following services
[RapidAPI](https://rapidapi.com/marketplace) (used for the yahoo-finance api endpoints, which you must subscribe to in your account settings)
[CoinAPI](https://www.coinapi.io/Pricing)
## Setup
plug in API keys for both your RapidAPI yahoo finance app and your CoinAPI account in the config file (either before packaging in the base-config, or directly in the maubot interface after loading).
update the commands you want to use, by default stock data is returned with the `!stonks` command, and crypto data is returned with `!hodl` command. for example:
`!stonks tsla`
would return something like this:
2021-01-12 00:06:19 +00:00
![stonks response](images/stonks.png)
and
`!hodl btc/ada`
would return something like this:
2021-01-12 00:06:19 +00:00
![hodl response](images/hodl.png)