Skip to content

Commit

Permalink
Merge pull request #10 from leonarduschen/develop
Browse files Browse the repository at this point in the history
Release 0.2.2
  • Loading branch information
leonarduschen authored Aug 28, 2020
2 parents f799c3d + 704d3ff commit 3c0699f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Implemented functions:
Based on this book [Financial Modeling by Simon Benninga](https://www.amazon.com/Financial-Modeling-Simon-Benninga/dp/0262026287)

### Changelog
**v0.2.2**:
- Fixed broken API link
- Fixed minor bugs

**v0.2.1**:
- Fixed failed tests
- Integrate code coverage
Expand Down
6 changes: 3 additions & 3 deletions pyfinmod/financials.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class ParserError(Exception):


class Financials:
url_financials = "https://financialmodelingprep.com/api/v3/financials/{}/{}"
url_profile = "https://financialmodelingprep.com/api/v3/company/profile/{}"
url_financials = "https://financialmodelingprep.com/api/v3/financials/{}/{}?apikey=demo"
url_profile = "https://financialmodelingprep.com/api/v3/company/profile/{}?apikey=demo"
available_data_type = (
"balance_sheet_statement",
"cash_flow_statement",
Expand Down Expand Up @@ -59,7 +59,7 @@ def __getattr__(self, item):
cached_value_key = "_profile"
cached_value = getattr(self, cached_value_key, None)
if cached_value:
return cached_value.get(item)
return float(cached_value.get(item))
else:
json_data = self._fetch_json("profile")["profile"]
setattr(self, cached_value_key, json_data)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="pyfinmod",
version="0.2.1",
version="0.2.2",
description="Financial modelling in Python",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 3c0699f

Please sign in to comment.