mirror of
https://github.com/williamkray/maubot-ticker.git
synced 2024-09-30 03:45:41 +00:00
A simple maubot plugin to return basic financial data about stocks and cryptocurrencies
images | ||
base-config.yaml | ||
maubot.yaml | ||
README.md | ||
sample-api-output.json | ||
tickerbot.py |
a simple maubot module that responds with financial data about stock price or cryptocurrency exchange rate.
note: this module depends on having an api key for the following services RapidAPI (used for the yahoo-finance api endpoints, which you must subscribe to in your account settings) CoinAPI
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:
and
!hodl btc/ada
would return something like this: