Quick Fin - Now Publicly Available via PyPI

Quick Fin

Quickfin is a Python module providing instant access to live and historical stock market price data, automated Plotly data visualization generators and a data catalog for referencing equities, stock symbols, sector, and industry information.

PyPI - Version GitHub Release

Documentation & Code Examples

Installation

Open a terminal and enter the following:

pip install quickfin

Quickstart 1

Retrieve the most recent stock price data available for the stock symbol passed to the symbol parameter. Method will return live market price quotes during trading hours.

from quickfin import *

price_data = PriceData()

print(price_data.current("SNOW"))

Output:

{
  'current': {
    'Adj Close': 161.6,
    'Change Amount': 2.42,
    'Change Rate': 0.01,
    'Close': 161.6,
    'Date': '2024-03-28',
    'Day Range': 4.89,
    'High': 165.89,
    'Low': 161.0,
    'Open': 164.02,
    'Volume': 10106900
  },
  'info': {
    'industry': 'Software - Application',
    'name': 'Snowflake Inc.',
    'sector': 'Technology',
    'symbol': 'SNOW'
  }
}

Quickstart 2

Retrieve all historical stock price data available for the stock symbol passed to the symbol parameter.

from quickfin import *

price_data = PriceData()

price_history = price_data.history("SNOW")

print(price_history["info"])
print(price_history["current"])
print(price_history["history"])

Output:

{'industry': 'Software - Application',
 'name': 'Snowflake Inc.',
 'sector': 'Technology',
 'symbol': 'SNOW'}

{'Adj Close': 161.6,
 'Change Amount': 2.42,
 'Change Rate': 0.01,
 'Close': 161.6,
 'Date': '2024-03-28',
 'Day Range': 4.89,
 'High': 165.89,
 'Low': 161.0,
 'Open': 164.02,
 'Volume': 10106900}

[{'Adj Close': 161.6,
  'Change Amount': 2.42,
  'Change Rate': 0.01,
  'Close': 161.6,
  'Date': '2024-03-28',
  'Day Range': 4.89,
  'High': 165.89,
  'Low': 161.0,
  'Open': 164.02,
  'Volume': 10106900},
 {'Adj Close': 160.04,
  'Change Amount': -0.44,
  'Change Rate': -0.0,
  'Close': 160.04,
  'Date': '2024-03-27',
  'Day Range': 2.93,
  'High': 160.63,
  'Low': 157.7,
  'Open': 159.6,
  'Volume': 4698100},
 {'Adj Close': 158.02,
  'Change Amount': 1.36,
  'Change Rate': 0.01,
  'Close': 158.02,
  'Date': '2024-03-26',
  'Day Range': 3.33,
  'High': 160.97,
  'Low': 157.64,
  'Open': 159.38,
  'Volume': 4069100},

      ----- snip -----

]


1 Like

I mean, that’s cool, but how does it connect to Streamlit? :slight_smile:

1 Like

lol. :laughing: That’s a very valid question.

This module is a packaged version of a script that I’ve been using to compile market data feeding the dashboard embedded in the Streamlit application listed below. Discussions that originated in this forum prompted me to package up my code and publish it. The equities were originally categorized by sector and industry using a list I compiled from the SEC and it needed some improvement. In the process of prepping the module for publishing, I rebuilt the list of equities included in my database using new sources, cleaned up sector & industry segmentation and added another 1000+ equities to script that I use to update this dashboard everyday.

It made sense to package everything up in the process of updating everything. Figured I would share it with the community. Considering that its a live feed with real-time updates, a motivated person could potentially compile price updates through out the day if they really wanted to.

Anyway, I appreciate the feedback. I hope you enjoy the rest of the day and have a good weekend! :+1:

Live Market Stream

It’s not important, but the equities with multiple lines in the video above are not the same investments.

1 Like

All right! Now everything is clear :slight_smile: Unfortunatelly it seems that Dashboard stopped working?

image

1 Like

:+1: :+1: Thank you for the heads up. Cake just came out of the oven, good to go now!

Thanks again. Enjoy your weekend!