We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or 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
2015-02-14 11:33:06 | |
2015-02-14 11:29:04 | |
2015-02-14 11:25:04 | |
2015-02-14 09:46:53 | |
2015-02-14 09:40:55 | |
2015-02-14 09:31:07 | |
2015-02-14 09:09:58 | |
2015-02-14 08:51:48 | |
2015-02-14 08:48:22 | |
2015-02-14 08:46:36 |
This file contains hidden or 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
. | |
├── LICENSE | |
├── README.md | |
├── flask_yahoo_finance | |
│ └── __init__.py | |
├── setup.py | |
└── tests | |
└── __init__.py |
This file contains hidden or 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
$ pip install yahoo-finance |
This file contains hidden or 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
from setuptools import setup | |
setup( | |
name='flask_yahoo_finance', | |
version='0.1', | |
long_description=__doc__, | |
packages=['flask_yahoo_finance'], | |
include_package_data=True, | |
zip_safe=False, | |
install_requires=['yahoo-finance'] |
This file contains hidden or 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
from dateutil import rrule | |
import datetime | |
# Generate ruleset for holiday observances on the NYSE | |
def NYSE_holidays(a=datetime.date.today(), b=datetime.date.today()+datetime.timedelta(days=365)): | |
rs = rrule.rruleset() | |
# Include all potential holiday observances | |
rs.rrule(rrule.rrule(rrule.YEARLY, dtstart=a, until=b, bymonth=12, bymonthday=31, byweekday=rrule.FR)) # New Years Day |
OlderNewer