Welcome to the Stock Ticker API, a Flask-based RESTful API that provides users with access to stock data and watchlist management features. This API enables developers to build applications that require real-time stock data and watchlist functionality.
- Calculate Adjusted Close Data: Allows users to calculate adjusted close data for a given stock symbol.
- Get Watchlist Cursors: Returns a list of watchlist cursors (tickers) stored in the database.
- Search for Stock Ticker: Searches for stock tickers using the Alpha Vantage API and caches results for faster retrieval.
- Watchlist Management: Enables users to manage their watchlist by adding them to mongodb
- Real-time Data: Provides real-time stock data and adjusted close data calculations.
- Validation and Serialization: Includes validation and serialization using Pydantic models for robust data handling and error handling.
- Python 3.11
- Docker
- AlphaVantage API Key
- EODHD API Key
-
Clone this repository to your local machine.
git clone https://github.com/MikunsHub/stock-ticker.git
-
Create a virtual environment and install the required dependencies..
pipenv install
-
Create a
.envfile in the project directory and fill in the required API Keys.ALPHA_VANTAGE_API_KEY= ALPHA_VANTAGE_BASE_URL=https://www.alphavantage.co MONGO_USER=test_user MONGO_HOST=localhost MONGO_PASSWORD=test_pwd EODHD_API_TOKEN= EODHD_BASE_URL=https://eodhd.com
-
Run the application.
make docker-run make run-local
Contributions are welcome! Feel free to open issues, submit pull requests, or suggest improvements.