Package yfinance_cache
+Module yfinance_cache.yfc_ticker
Sub-modules
--
-
yfinance_cache.yfc_cache_manager
-- - - -
yfinance_cache.yfc_dat
-- - - -
yfinance_cache.yfc_financials_manager
-- - - -
yfinance_cache.yfc_logging
-- - - -
yfinance_cache.yfc_multi
-- - - -
yfinance_cache.yfc_options
-- - - -
yfinance_cache.yfc_prices_manager
-- - - -
yfinance_cache.yfc_ticker
-- - - -
yfinance_cache.yfc_time
-- - - -
yfinance_cache.yfc_upgrade
-- - - -
yfinance_cache.yfc_utils
-- - - -
Functions
-
-
-def DisableLogging() -
-- - - -
-def EnableLogging(mode=20) -
-- - - -
-def download(tickers, threads=True, ignore_tz=None, progress=True, interval='1d', group_by='column', max_age=None, period=None, start=None, end=None, prepost=False, actions=True, adjust_splits=True, adjust_divs=True, keepna=False, proxy=None, rounding=False, debug=True, quiet=False, trigger_at_market_close=False, session=None) -
-- - - -
+
-def verify_cached_tickers_prices(session=None, rtol=0.0001, vol_rtol=0.005, correct=False, halt_on_fail=True, resume_from_tkr=None, debug_tkr=None, debug_interval=None)
- @@ -120,279 +55,7 @@
-Functions
Classes
-
-
-class AmbiguousComparisonException -(value1, value2, operation, true_prob=None) -
--
--
Common base class for all non-exit exceptions.
---Expand source code -
-
-class AmbiguousComparisonException(Exception): - def __init__(self, value1, value2, operation, true_prob=None): - if not isinstance(operation, str): - raise TypeError(f"operation must be a string not {type(operation)}") - if true_prob is not None and not isinstance(true_prob, (int, float)): - raise TypeError(f"true_prob must be numeric not {type(true_prob)}") - - self.value1 = value1 - self.value2 = value2 - self.operation = operation - self.true_prob = true_prob - - def __str__(self): - msg = f"Ambiguous whether {self.value1} {self.operation} {self.value2}" - if self.true_prob is not None: - msg += f" (true with probability {self.true_prob*100:.1f}%)" - return msg
Ancestors
--
-
- builtins.Exception -
- builtins.BaseException -
- -class Interval -(*args, **kwds) -
--
--
Create a collection of name/value pairs.
-Example enumeration:
-
->>> class Color(Enum): -... RED = 1 -... BLUE = 2 -... GREEN = 3 -
Access them by:
--
-
- attribute access: -
-
--
--
-Color.RED -
--
-
- value lookup: -
-
--
--
-Color(1) -
--
-
- name lookup: -
-
--
--
-Color['RED'] -
-Enumerations can be iterated over, and know how many members they have:
-
->>> len(Color) -3 -
->>> list(Color) -[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>] -
Methods can be added to enumerations, and members can have their own -attributes – see the documentation for details.
---Expand source code -
-
-class Interval(Enum): - Week = 5 - Days1 = 10 - Hours1 = 20 - Mins90 = 21 - Mins60 = 22 - Mins30 = 23 - Mins15 = 24 - Mins5 = 25 - Mins2 = 26 - Mins1 = 27
Ancestors
--
-
- enum.Enum -
Class variables
--
-
var Days1
-- - - -
var Hours1
-- - - -
var Mins1
-- - - -
var Mins15
-- - - -
var Mins2
-- - - -
var Mins30
-- - - -
var Mins5
-- - - -
var Mins60
-- - - -
var Mins90
-- - - -
var Week
-- - - -
- -class Period -(*args, **kwds) -
--
--
Create a collection of name/value pairs.
-Example enumeration:
-
->>> class Color(Enum): -... RED = 1 -... BLUE = 2 -... GREEN = 3 -
Access them by:
--
-
- attribute access: -
-
--
--
-Color.RED -
--
-
- value lookup: -
-
--
--
-Color(1) -
--
-
- name lookup: -
-
--
--
-Color['RED'] -
-Enumerations can be iterated over, and know how many members they have:
-
->>> len(Color) -3 -
->>> list(Color) -[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>] -
Methods can be added to enumerations, and members can have their own -attributes – see the documentation for details.
---Expand source code -
-
-class Period(Enum): - Days1 = 0 - Days5 = 1 - Months1 = 10 - Months3 = 11 - Months6 = 12 - Years1 = 20 - Years2 = 21 - Years5 = 22 - Ytd = 24 - Max = 30
Ancestors
--
-
- enum.Enum -
Class variables
--
-
var Days1
-- - - -
var Days5
-- - - -
var Max
-- - - -
var Months1
-- - - -
var Months3
-- - - -
var Months6
-- - - -
var Years1
-- - - -
var Years2
-- - - -
var Years5
-- - - -
var Ytd
-- - - -
- +
@@ -1345,7 +1008,7 @@class Ticker (ticker, session=None)
Class variables
Instance variables
-
-
prop balance_sheet
+prop balance_sheet
-
@@ -1357,7 +1020,7 @@
Instance variables
return self._financials_manager.get_balance_sheet()
+prop calendar
prop calendar
@@ -1369,7 +1032,7 @@Instance variables
return self._financials_manager.get_calendar() +prop cashflow
prop cashflow
-
@@ -1381,7 +1044,7 @@
Instance variables
return self._financials_manager.get_cashflow()
- prop earnings
+prop earnings
-
@@ -1393,7 +1056,7 @@
Instance variables
return self._financials_manager.get_earnings()
- prop fast_info
+prop fast_info
-
@@ -1431,7 +1094,7 @@
Instance variables
return self._fast_info
- prop financials
+prop financials
-
@@ -1443,7 +1106,7 @@
Instance variables
return self._financials_manager.get_income_stmt()
- prop income_stmt
+prop income_stmt
-
@@ -1455,7 +1118,7 @@
Instance variables
return self._financials_manager.get_income_stmt()
- prop info
+prop info
-
@@ -1467,7 +1130,7 @@
Instance variables
return self.get_info()
- prop inin
+prop inin
-
@@ -1488,7 +1151,7 @@
Instance variables
return self._inin
- prop institutional_holders
+prop institutional_holders
-
@@ -1509,7 +1172,7 @@
Instance variables
return self._institutional_holders
- prop major_holders
+prop major_holders
-
@@ -1530,7 +1193,7 @@
Instance variables
return self._major_holders
- prop news
+prop news
-
@@ -1551,7 +1214,7 @@
Instance variables
return self._news
- prop options
+prop options
-
@@ -1572,7 +1235,7 @@
Instance variables
return self._options
- prop quarterly_balance_sheet
+prop quarterly_balance_sheet
-
@@ -1584,7 +1247,7 @@
Instance variables
return self._financials_manager.get_quarterly_balance_sheet()
- prop quarterly_cashflow
+prop quarterly_cashflow
-
@@ -1596,7 +1259,7 @@
Instance variables
return self._financials_manager.get_quarterly_cashflow()
- prop quarterly_earnings
+prop quarterly_earnings
-
@@ -1608,7 +1271,7 @@
Instance variables
return self._financials_manager.get_quarterly_earnings()
- prop quarterly_financials
+prop quarterly_financials
-
@@ -1620,7 +1283,7 @@
Instance variables
return self._financials_manager.get_quarterly_income_stmt()
- prop quarterly_income_stmt
+prop quarterly_income_stmt
-
@@ -1632,7 +1295,7 @@
Instance variables
return self._financials_manager.get_quarterly_income_stmt()
- prop recommendations
+prop recommendations
-
@@ -1653,7 +1316,7 @@
Instance variables
return self._recommendations
- prop splits
+prop splits
-
@@ -1674,7 +1337,7 @@
Instance variables
return self._splits
- prop sustainability
+prop sustainability
-
@@ -1695,7 +1358,7 @@
Instance variables
return self._sustainability
- prop yf_lag
+prop yf_lag
-
@@ -1723,31 +1386,31 @@
Instance variables
Methods
-
-
+
def get_earnings_dates(self, limit=12)
+
def get_info(self, max_age=None)
+
def get_release_dates(self, period='quarterly', as_df=False, check=True)