Skip to content

Commit

Permalink
Merge 621994f into a514ab9
Browse files Browse the repository at this point in the history
  • Loading branch information
danielecook committed Oct 22, 2018
2 parents a514ab9 + 621994f commit b98ac22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iex/stocks.py
Expand Up @@ -127,7 +127,7 @@ def dividends(self, range='1m'):
'DIVIDEND_RANGES' has possible values in addition to a date.
"""
validate_range_set(range, RANGES)
return self._get(f"chart/{range}")
return self._get(f"dividends/{range}")

def dividends_table(self, range='1m'):
dividends_data = self.dividends(range)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -10,7 +10,7 @@
]

setuptools.setup(name='iex-api-python',
version="0.0.5",
version="0.0.6",
description='Fetch data from the IEX API',
long_description=open('README.md').read().strip(),
author='Daniel E. Cook',
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_stock.py
Expand Up @@ -60,7 +60,7 @@ def test_earnings():


def test_tables():
ibm = Stock("IBM")
ibm = Stock("GM")
assert ibm.chart_table().empty == False
assert ibm.dividends_table().empty == False
assert ibm.effective_spread_table().empty == False
Expand Down

0 comments on commit b98ac22

Please sign in to comment.