Skip to content

Commit

Permalink
support arbitrary date
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Sep 23, 2018
1 parent 29e17ff commit 9e6a5e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyEX/stocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ def chart(symbol, timeframe='1m', date=None):
return _getJson('stock/' + symbol + '/chart')


def chartDF(symbol, timeframe='1m'):
def chartDF(symbol, timeframe='1m', date=None):
'''
https://iextrading.com/developer/docs/#chart
https://iextrading.com/developer/docs/#time-series
'''
df = pd.DataFrame(chart(symbol, timeframe))
df = pd.DataFrame(chart(symbol, timeframe, date))
_toDatetime(df)
if timeframe != '1d':
_reindex(df, 'date')
Expand Down

0 comments on commit 9e6a5e2

Please sign in to comment.