We use the Yahoo!
API to gather real time stock data.
Rename the config.json.example
file to config.json
and add your Discord Token
and Stock Ticker
to the file.
{
"DiscordToken": "Your Token Key",
"CryptoTicker": "TSLA"
}
Where to search for Stock Tickers
Make sure you have Go
installed on your machine.
You can check by running the following command in the console
go version
If you don't have Go
installed, you can download it from here.
Run the following command in the console
, in the project directory
Run the following command to install the dependencies
go get
Then run the following command to tidy the dependencies
go mod tidy
Then run the following command to build the bot
go build
Run the following command to run the bot
./stock-bot
If you find an issue with this library, please report an issue. If you'd like, we welcome any contributions. Fork this library and submit a pull request.
This project is under the MIT License. See the LICENSE file for the full license text.
Check out our CHANGELOG