diff --git a/CHANGES b/CHANGES index 9d1e302..1a2a6bc 100644 --- a/CHANGES +++ b/CHANGES @@ -56,3 +56,4 @@ 1.16 07/17/2023 -- Minor code cleanup in test_yahoofinancials.py. 1.16 07/17/2023 -- Fixed HTTP 401 error when executing get_current_price() as reported in #152. 1.17 10/30/2023 -- Added a fix for 404 error reported in #157. +1.18 12/12/2023 -- Merged in branch from shaunpatterson to fix #164. \ No newline at end of file diff --git a/README.rst b/README.rst index 4e18d8e..58eb860 100644 --- a/README.rst +++ b/README.rst @@ -16,9 +16,9 @@ A python module that returns stock, cryptocurrency, forex, mutual fund, commodit .. image:: https://static.pepy.tech/badge/yahoofinancials/week :target: https://pepy.tech/project/yahoofinancials -Current Version: v1.17 +Current Version: v1.18 -Version Released: 10/30/2023 +Version Released: 12/09/2023 Report any bugs by opening an issue here: https://github.com/JECSand/yahoofinancials/issues diff --git a/setup.py b/setup.py index 3a22bb9..12fe761 100644 --- a/setup.py +++ b/setup.py @@ -10,11 +10,11 @@ setup( name='yahoofinancials', - version='1.17', + version='1.18', description='A powerful financial data module used for pulling both fundamental and technical data from Yahoo Finance', long_description=long_description, url='https://github.com/JECSand/yahoofinancials', - download_url='https://github.com/JECSand/yahoofinancials/archive/1.17.tar.gz', + download_url='https://github.com/JECSand/yahoofinancials/archive/1.18.tar.gz', author='Connor Sanders', author_email='connor@exceleri.com', license='MIT', diff --git a/test/test_yahoofinancials.py b/test/test_yahoofinancials.py index 646b5ff..f5456ff 100644 --- a/test/test_yahoofinancials.py +++ b/test/test_yahoofinancials.py @@ -1,5 +1,5 @@ -# YahooFinancials Unit Tests v1.17 -# Version Released: 10/30/2023 +# YahooFinancials Unit Tests v1.18 +# Version Released: 12/09/2023 # Author: Connor Sanders # Tested on Python 3.7, 3.8, 3.9, 3.10, and 3.11 # Copyright (c) 2023 Connor Sanders @@ -165,6 +165,12 @@ def test_yf_module_methods(self): else: self.assertEqual(False, True) + # Stock Earnings data check + if isinstance(self.test_yf_stock_single.get_stock_earnings_data().get("C").get("earningsChart").get("quarterly")[0].get("actual"), float): + self.assertEqual(True, True) + else: + self.assertEqual(False, True) + if __name__ == "__main__": t_main() diff --git a/yahoofinancials/yf.py b/yahoofinancials/yf.py index ec03e38..a08391e 100644 --- a/yahoofinancials/yf.py +++ b/yahoofinancials/yf.py @@ -1,12 +1,12 @@ """ ============================== The Yahoo Financials Module -Version: 1.17 +Version: 1.18 ============================== Author: Connor Sanders Email: jecsand@pm.me -Version Released: 10/30/2023 +Version Released: 12/09/2023 Tested on Python 3.7, 3.8, 3.9, 3.10, and 3.11 Copyright (c) 2023 Connor Sanders