Skip to content

Commit

Permalink
adde properties for all methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaroussi committed May 29, 2019
1 parent 8d8dc1c commit 74cd2ae
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions yfinance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,36 @@ def get_cashflow(self, proxy=None):
return self._cashflow

# ------------------------

@property
def dividends(self):
return self.get_dividends()

@property
def splits(self):
return self.get_splits()

@property
def actions(self):
return self.get_actions()

@property
def financials(self):
return self.get_financials()

@property
def balance_sheet(self):
return self.get_balance_sheet()

@property
def balancesheet(self):
return self.get_balance_sheet()

@property
def cashflow(self):
return self.get_cashflow()


@_multitasking.task
def _download_one_threaded(ticker, start=None, end=None, auto_adjust=False,
actions=False, progress=True, period="max",
Expand Down

0 comments on commit 74cd2ae

Please sign in to comment.