Skip to content

This is a Python program that extracts real-life stock data using Polygon's API, stores it in a PostgreSQL database, and runs a dollar-cost averaging investment strategy based on user-defined parameters. It also includes a Flask-based HTML interface for user input.

Notifications You must be signed in to change notification settings

josedowf/dca_strategpy

Repository files navigation

DCA Strategy Runner

This is a Python program that utilizes Polygon's API to extract real-time stock data, stores it in a PostgreSQL database, and runs a dollar-costing average investment strategy scenario based on user-defined parameters.

Features:

Extracts real-time stock data from Polygon's API. Stores data in a PostgreSQL database. Runs a dollar-costing average investment strategy based on user-defined parameters. Flask-based HTML interface for user input. Dependencies

This program requires the following dependencies:

  • Python 3.6 or higher
  • HTML5
  • CSS
  • PostgreSQL
  • Flask
  • SQLAlchemy
  • Polygon API key

Installation and Usage:

  • Clone the repository to your local machine.
  • Install the dependencies using pip: pip install -r requirements.txt
  • Create a PostgreSQL database and update the database connection details in creds.json.
  • Set your Polygon API key in creds.json
  • Run the program using python app.py.
  • Access the HTML interface at http://localhost:5000 and input the desired company ticker, start range, dollar costing amount, and frequency of dollar costing.
  • The program will execute the dollar-cost averaging investment strategy using the user-defined parameters and display the results on the HTML interface.

About

This is a Python program that extracts real-life stock data using Polygon's API, stores it in a PostgreSQL database, and runs a dollar-cost averaging investment strategy based on user-defined parameters. It also includes a Flask-based HTML interface for user input.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published