scheb / yahoo-finance-api

PHP client for Yahoo Finance API 📈
MIT License
280 stars 56 forks source link

Is it possible to return the last day of the month? #20

Closed recoverjp closed 4 years ago

recoverjp commented 5 years ago

If I use "getHistoricalData (..., INTERVAL_1_MONTH, ..., ...)", it returns the first day of the month. Is it possible to return the last day?

scheb commented 4 years ago

Hey @recoverjp, I must have missed your question unfortunately.

I don't think this is supported by the API. What you can do is fetching the last day for each month individually or just the whole time frame with daily interval and skip everything but the last day of each month.