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.
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 -----
]