Fin Stream - Live Stock Ticker & Instant Access to SEC Recent Filings

Stock_Quotes

Market_Updates

Ferdy,

I just published a new module to PyPi that will allow you to get all of the price history data you want without restrictions. I’m still working on documentation and a few other small things, but the module is available now if you would like to use it.

PyPi Module - https://pypi.org/project/quickfin/
Documentation - https://quickfin.techbyderek.com/

Installation

Open a terminal and enter the following:

pip install quickfin

Quickstart 1

Retrieve a data payload containing 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 data payload containing 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 -----

]

2 Likes