ananthakumaran/paisa

Unable to handle Stock/Asset symbol change

sdhawade opened this issue · 1 comments

Describe your Environment
OS: Windows 10
Paisa Version: 0.5.1
App Variant: CLI

Describe the bug
Stock exchanges change stock symbols, aggregators like Yahoo (from which the app is sourcing data) keep data for old and new symbol separately. Eg. ICICIALPLV.NS has now become ALPL30IETF.NS. If I switch the symbol only new data is loaded and if I keep the symbol the new data does not update.

To Reproduce
Steps to reproduce the behavior:

  1. Add Buy transactions for asset ICICIALPLV.NS before Dec 18 2023
  2. the value of this stock remains static after Dec 18th

Expected behavior
Price acquisition works across symbol changes,

Let me think, as of now there is a one to one mapping between commodity and price provider. The problem you described would require fetching two tickers and merge their data etc, which will likely add lot more complexity.