This Python script retrieves and displays the current Fear and Greed Index from the Alternative.me API. The Fear and Greed Index is a popular indicator used to gauge the sentiment of the cryptocurrency market. The script fetches the data from a JSON endpoint, extracts the relevant information, and prints the Fear and Greed Index value along with its classification.
- Fetches the latest Fear and Greed Index data from the Alternative.me API.
- Extracts and displays the current index value.
- Shows the classification of the index value (e.g., Fear, Greed).
-
Clone the repository:
git clone https://github.com/lukgart/crypto_fear_and_greed_index.git cd fear-and-greed-index
-
Run the script:
python main.py
Fear and Greed Index Value: 72
Classification: Greed