BruceWind / fear-and-greed-index-alarm

A notification reminder for indicating when the CNN Fear and Greed Index is out of range.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

中文

Fear-And-Greed Index Alarm

The FearNGreed Index Alarm is an open-source repository that allows you to fetch CNN Fear and Greed Index every morning using GitHub Actions. This index serves as an indicator of market sentiment. The repository includes a script that checks whether the fetched index value is above or below a specified threshold. If it exceeds the defined range, an exception is raised within the GitHub Actions workflow. You will receive an email notification from github.

In case of out of range, you can see the error like this: Screenshot 2023-12-07 at 12 53 09 PM

You can also see today status: Today Status

Setup

To set up the FearNGreed Index Alarm, follow these steps:

  1. Make sure you have a GitHub account. If not, create one at https://github.com.
  2. Fork this repository by clicking the "Fork" button in the top-right corner of this page.
  3. In your forked repository, go to the "Settings" tab.
  4. Under "Repository name", click on "Secrets".
  5. Click on "New repository secret" and add the following secrets:
    • FNG_MIN: The minimum threshold value for the Fear and Greed Index.
    • FNG_MAX: The maximum threshold value for the Fear and Greed Index. Make sure to provide the appropriate values for these secrets.
  6. Once you have added the secrets, the FearNGreed Index Alarm will be able to access them during the GitHub Actions workflow.
  7. Commit the changes to your forked repository. The GitHub Actions workflow will now be triggered according to the specified schedule.

Notification

Once you have set up the FearNGreed Index Alarm and added the necessary secrets, the workflow will automatically run according to the schedule. If the fetched Fear and Greed Index value exceeds the defined range, a notification will be triggered. You can customize the notification settings based on your preferences and requirements.

About

A notification reminder for indicating when the CNN Fear and Greed Index is out of range.

License:Other


Languages

Language:JavaScript 90.0%Language:Dockerfile 10.0%