Skip to content

Commit

Permalink
added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 13, 2015
1 parent 74e18d6 commit c38f5fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nsepy/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ def get_index_pe_history(symbol, start, end):
return get_index_pe_history_quanta(**kwargs)

def get_index_pe_history_quanta(symbol, start, end):
"""This function will fetch the P/E, P/B and dividend yield for a given index
Args:
symbol (str): Symbol for stock, index or any security
start (datetime.date): start date
end (datetime.date): end date
Returns:
pandas.DataFrame : A pandas dataframe object
"""
if symbol in DERIVATIVE_TO_INDEX:
index_name = DERIVATIVE_TO_INDEX[symbol]
else:
Expand Down

0 comments on commit c38f5fd

Please sign in to comment.