-
Hello, I'm using node-yahoo-finance2 to fetch historical price data for stocks that have undergone name changes and ticker symbol renaming. For example, the stock was previously known as ZOMATO.NS was renamed to ETERNAL.NS on April 9, 2024. My issues are: When I request historical data for ZOMATO.NS, the API returns a “symbol delisted” error. When I request data for ETERNAL.NS with a start date before April 7, 2025 (e.g., April 1, 2025), the API only returns data starting from April 7, 2025. It seems Yahoo Finance treats the renamed symbol as a new listing without backfilling historical data under the new symbol. How should I properly handle fetching complete historical data for renamed stocks using this library? Does node-yahoo-finance2 provide any built-in support or recommended pattern for aliasing symbols across corporate actions? Additionally, is it advisable to maintain a manual symbol alias map and switch ticker symbols based on date ranges outside this library? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey, I'm afraid I don't have any good news here. From the last time I looked into delisted stocks, there was no way to recover the history. At the end of the day, we're at the mercy of whatever Yahoo Finance gives us. There's not really much any library - as a consumer of that data - can do. But yes, as the end user, if you were say, saving the data every day, you'd have a record of that after any delisting, and then yes, you could have your own code to join the data of the two symbols or just rename the old data. If anyone else has anything more positive to add, I'll be grateful to hear it too. |
Beta Was this translation helpful? Give feedback.
Hey, I'm afraid I don't have any good news here. From the last time I looked into delisted stocks, there was no way to recover the history. At the end of the day, we're at the mercy of whatever Yahoo Finance gives us. There's not really much any library - as a consumer of that data - can do.
But yes, as the end user, if you were say, saving the data every day, you'd have a record of that after any delisting, and then yes, you could have your own code to join the data of the two symbols or just rename the old data.
If anyone else has anything more positive to add, I'll be grateful to hear it too.