Skip to content

Commit

Permalink
Merge pull request #129 from JECSand/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
JECSand authored Jan 27, 2023
2 parents 6e657aa + 7665988 commit 084a09c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@
1.9 01/14/2023 -- Fixed new data encryption issue & hardened.
1.10 01/25/2023 -- Fixed new decryption issue.
1.11 01/26/2023 -- Added a dynamic fix for the decryption issue.
1.12 01/27/2023 -- Fixed get profile function for #127 and added additional unit test
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ A python module that returns stock, cryptocurrency, forex, mutual fund, commodit
.. image:: https://github.com/JECSand/yahoofinancials/actions/workflows/test.yml/badge.svg?branch=master
:target: https://github.com/JECSand/yahoofinancials/actions/workflows/test.yml

Current Version: v1.11
Current Version: v1.12

Version Released: 01/26/2023
Version Released: 01/27/2023

Report any bugs by opening an issue here: https://github.com/JECSand/yahoofinancials/issues

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

setup(
name='yahoofinancials',
version='1.11',
version='1.12',
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.11.tar.gz',
download_url='https://github.com/JECSand/yahoofinancials/archive/1.12.tar.gz',
author='Connor Sanders',
author_email='[email protected]',
license='MIT',
Expand Down
4 changes: 4 additions & 0 deletions test/test_yahoofinancials.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ def test_yf_module_methods(self):
self.assertEqual(True, True)
else:
self.assertEqual(False, True)
if self.test_yf_stock_single.get_stock_profile_data().get("C").get("sector") == "Financial Services":
self.assertEqual(True, True)
else:
self.assertEqual(False, True)
# Treasuries
if isinstance(self.test_yf_treasuries_single.get_current_price(), float):
self.assertEqual(True, True)
Expand Down
3 changes: 2 additions & 1 deletion yahoofinancials/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ def __init__(self, ticker, **kwargs):
'balance': ['balance-sheet', 'balanceSheetHistory', 'balanceSheetHistoryQuarterly', 'balanceSheetStatements'],
'cash': ['cash-flow', 'cashflowStatementHistory', 'cashflowStatementHistoryQuarterly', 'cashflowStatements'],
'keystats': ['key-statistics'],
'history': ['history']
'history': ['history'],
'profile': ['profile']
}

# Interval value translation dictionary
Expand Down
6 changes: 3 additions & 3 deletions yahoofinancials/yf.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
==============================
The Yahoo Financials Module
Version: 1.11
Version: 1.12
==============================
Author: Connor Sanders
Email: [email protected]
Version Released: 01/26/2023
Version Released: 01/27/2023
Tested on Python 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11
Copyright (c) 2023 Connor Sanders
Expand Down Expand Up @@ -45,7 +45,7 @@
from yahoofinancials.calcs import num_shares_outstanding, eps
from yahoofinancials.etl import YahooFinanceETL

__version__ = "1.11"
__version__ = "1.12"
__author__ = "Connor Sanders"


Expand Down

0 comments on commit 084a09c

Please sign in to comment.