Skip to content

quazirab/stock_data_s-p_500

Repository files navigation

The web-application visualizes S&P 500 stock market data.

The application is written in Python and uses Flask, Dash yFinance and Pandas. It is staged and deployed using Heroku pipeline.

The app doesnot use any database. It collects data from yFinance (Yahoo Finance API) and creates an market_data object, which then gets used in the app.dashboard.callbacks function for generating graph and table.

Snapshot

snapshot1

Pipeline

pipeline

Installation

  1. Create virtualenv venv for python-3.7
  2. Activate virtualenv
  3. Install requirements pip install -r requirements.txt
  4. run server gunicorn run_server:server

REST API

Histoy

uri = /api/v1/history/

Input parameter

ticker = Ticker name of listed S&P 500 (required)

Response:

<Date>
    Close
    High
    Low
    Open
    Volume
    Stock Splits
    Dividends