A simple Python script to generate a JSON Feed for the CNNMoney Fear & Greed Index.
Served over Flask!
Use the Docker build to host your own instance.
-
Set your timezone as an environment variable (see docker docs):
TZ=America/Los_Angeles
-
Access the feed using the URL:
http://<host>:5000/
By default, the latest Fear & Greed Index is used to create a feed item.
To avoid repetitive updates in your RSS reader, you can try the following "rounding" methods:
-
Daily index at previous close:
http://<host>:5000/daily
-
Hourly index (rounded down):
http://<host>:5000/hourly
-
Hourly index (if different from previous close, i.e. when markets are open):
http://<host>:5000/hourly_open
Tested with: