Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bookvalue / bookvalue per share discrepancy #1066

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

cafxcaf
Copy link

@cafxcaf cafxcaf commented Sep 26, 2022

bookValue entry is currently the book value per share. I renamed bookValue to bookValuePS. Also created a new bookValue entry with the true book value by multiplying bookValuePS by the # of shares outstanding. Resolves #936.

(This is my first pull request and was for a class project, so apologies if this is a low quality submission!)

@ValueRaider
Copy link
Collaborator

Two quick thoughts:

  • Catching exceptions seems redundant, your if-statements should stop any occurring. Maybe just remove the try-catch?
  • Is it worth checking that #shares isn't 0?

@ValueRaider
Copy link
Collaborator

Paging @cafxcaf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stock.info["bookValue"] returns Book Value per Share
2 participants