mop-tracker / mop

Stock market tracker for hackers.
MIT License
1.98k stars 302 forks source link

Error fetching market data... #101

Closed JohannVonDiesel closed 2 years ago

JohannVonDiesel commented 2 years ago
Error fetching market data...                                                                                                                                                                                                    9:18:23pm PDT
runtime error: slice bounds out of range [:-1] d tcp 192.168.1.170:52447-> 151.101.21.67:443: read: can't assign requested address
image

On a Mac OS / Darwin ARM64 system.

brandleesee commented 2 years ago

@JohannVonDiesel, thank you for reporting, we shall be looking into the matter.

JohannVonDiesel commented 2 years ago

👌🏽

brandleesee commented 2 years ago

Adding @archrunner & @joce to this thread.

@archrunner, @JohannVonDiesel, @joce, and any follower of this thread, please feel free to provide a pull request should you be able to resolve the issue whilst we are working on it. Thank you.

joce commented 2 years ago

Looks like the CNN source has changed quite a bit. Trying to find a better one that is not too hard to fetch data from. The BBC appears to be mostly there, but it's missing the 10-year yield. https://www.bbc.com/news/business/market-data.

CNBC looks like it has everything on the front page, but I need to dig a bit more to see how easy it would be to scrape the data. https://www.cnbc.com/

joce commented 2 years ago

Looking at Yahoo! Finance a bit more, I realized I can use the mechanism already in place for stocks to be able to gather the data. This means I will be able to do away with the CNN source parser entirely. 🎉

brandleesee commented 2 years ago

That would consolidate moren the code, thank you.

brandleesee commented 2 years ago

Software working as intended, per PR https://github.com/mop-tracker/mop/pull/103. Thank you @Mohit-Agarwa1