Skip to content

Commit

Permalink
Divide debt to equity ratio from MSN Money by 100 before showing. (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocielnik authored May 16, 2024
1 parent 1daffb9 commit ef18b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Active/MSNMoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _parse_roic_average(self, yearly_data):
def _parse_debt_to_equity(self, quarterly_data):
# NOTE: ROIC is already expressed as a percentage, so just take the average over a timespan.
debt_to_equity_ratios = _extract_data_for_key(quarterly_data, "debtToEquityRatio")
self.debt_equity_ratio = debt_to_equity_ratios[-1] # Most recent quarter
self.debt_equity_ratio = debt_to_equity_ratios[-1] / 100 # Most recent quarter


def _extract_data_for_key(yearly_data, key):
Expand Down

0 comments on commit ef18b03

Please sign in to comment.