The Stock Price Getter API is a Flask-based service that fetches current stock prices for specified tickers using the Yahoo Finance API (yfinance library). This API can be deployed on cloud platforms such as Google Cloud Run and can be utilized in various side projects requiring real-time stock price data.
Features
Fetches real-time stock prices.
Caches stock prices to minimize redundant API calls.
Supports a retry mechanism for failed fetch attempts.
API key authentication for secure access.
Prerequisites
Docker
A Docker Hub account
Google Cloud account (if deploying to Google Cloud Run)
Setup
Clone the Repository
git clone <repository-url>
cd <repository-directory>