yahoo-finance-api icon indicating copy to clipboard operation
yahoo-finance-api copied to clipboard

Add stock summary retrieval and decoding functionality

Open elminson opened this issue 1 year ago • 1 comments

Description Adding stock Summary to get information about shares and stock data I need this information to get the float shares of a stock If I need this information maybe another one needs it

elminson avatar Feb 24 '24 20:02 elminson

Hi, could you please explain why this is needed. Isn't getQuote doing the same thing?

scheb avatar Feb 25 '24 11:02 scheb

Hi @scheb thank you for your quick response, getQuote don't have some important information (in my case is critical to get the float shares, operatingCashflow, sharesShortPriorMonth, freeCashflow, etc).

I have 2 options,

  1. Create a new method (stockSummary)
  2. Add what I need to getQuote method.

Because was easier to tests and less disruptive to the current method, I had pick option 1

Let me know what do you think about it.

Here are the data for AAPL called by each method stockSummary.json => https://gist.github.com/elminson/e996c7bbcd21c066406b651bb061775f

getQuote.json => https://gist.github.com/elminson/0d1e2afaba3b815de5cc06cc1fc1813c

elminson avatar Feb 25 '24 16:02 elminson

Okay, I see. Could you please do me a favor and rebase your changes onto the main branch and force-push an update? For some reason the CI didn't trigger. I hope it will after the push. I'm pretty sure there will be some code style issues popping up that we'd need to fix before we can merge.

scheb avatar Feb 26 '24 21:02 scheb

@scheb I think now should be good if not let me know

elminson avatar Feb 27 '24 02:02 elminson

Please check the coding standards job, there have been some issues popping up.

scheb avatar Feb 27 '24 11:02 scheb

@scheb all code standards now are passing on my local please confirm :)

elminson avatar Feb 28 '24 01:02 elminson

Welcome to Codecov :tada:

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered :open_umbrella:

codecov-commenter avatar Mar 01 '24 18:03 codecov-commenter

fixing the failing standards @scheb my PHP standard is set to use tabs :) fixed

elminson avatar Mar 01 '24 18:03 elminson

Merged and tagged as v4.9.0

scheb avatar Mar 01 '24 19:03 scheb