Error fetching market data...
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
On a Mac OS / Darwin ARM64 system.
@JohannVonDiesel, thank you for reporting, we shall be looking into the matter.
👌🏽
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.
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/
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. 🎉
That would consolidate moren the code, thank you.
Software working as intended, per PR https://github.com/mop-tracker/mop/pull/103. Thank you @Mohit-Agarwa1