-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- minor changes - udpated TODO/DONE list - JSON output of ETFs modified
- Loading branch information
alvarob96
committed
May 15, 2019
1 parent
b4264d1
commit e7cd86f
Showing
7 changed files
with
491 additions
and
146 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
__author__ = "Alvaro Bartolome <[email protected]>" | ||
|
||
|
||
# TODO: all lower case in objects to access it via dot operator (.) | ||
# look for a proper justification of it | ||
|
||
class Data(object): | ||
""" | ||
A class used to store the historical data of an equity, fund or etf | ||
|
@@ -89,9 +92,10 @@ def etf_to_dict(self): | |
} | ||
|
||
def etf_as_json(self): | ||
return {self.date.strftime('%d/%m/%Y'): { | ||
'Open': self.open, | ||
'High': self.high, | ||
'Low': self.low, | ||
'Close': self.close, | ||
}} | ||
return { | ||
'date': self.date.strftime('%d/%m/%Y'), | ||
'open': self.open, | ||
'high': self.high, | ||
'low': self.low, | ||
'close': self.close, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,10 @@ def readme(): | |
|
||
setup( | ||
name='investpy', | ||
version='0.8.4.3', | ||
version='0.8.4.4', | ||
packages=find_packages(), | ||
url='https://github.com/alvarob96/investpy', | ||
download_url='https://github.com/alvarob96/investpy/archive/0.8.4.3.tar.gz', | ||
download_url='https://github.com/alvarob96/investpy/archive/0.8.4.4.tar.gz', | ||
license='MIT License', | ||
author='Alvaro Bartolome', | ||
author_email='[email protected]', | ||
|