Lakshya1726 / CRYPTOANALYSIS

2 stars 18 forks source link

Error Handling is unavailable #34

Open Mayur-Pagote opened 2 weeks ago

Mayur-Pagote commented 2 weeks ago

Example of What Can Go Wrong: Network Issues: If the internet connection is down or the API service is not available, a ConnectionError could be raised. Invalid Data: If Yahoo Finance returns an unexpected format, an exception like KeyError could happen when trying to access missing columns like 'Open', 'Close', etc. Empty Dataset: If the API returns an empty dataframe, further operations like plotting would cause errors or produce misleading results. Graph Rendering Issues: There could be bugs in how the data is fed into Plotly, causing issues during rendering if, for instance, the data isn't in the right shape or format. So, for this I would like to add error handling.