ananthakumaran / paisa

Paisa – Personal Finance Manager. https://paisa.fyi demo: https://demo.paisa.fyi
https://paisa.fyi
GNU Affero General Public License v3.0
2.24k stars 111 forks source link

Unable to handle Stock/Asset symbol change #152

Open sdhawade opened 5 months ago

sdhawade commented 5 months ago

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,

ananthakumaran commented 5 months ago

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.