mop icon indicating copy to clipboard operation
mop copied to clipboard

Error fetching market data...

Open JohannVonDiesel opened this issue 3 years ago • 6 comments

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.

JohannVonDiesel avatar Jun 17 '22 04:06 JohannVonDiesel

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

brandleesee avatar Jun 17 '22 07:06 brandleesee

👌🏽

JohannVonDiesel avatar Jun 17 '22 16:06 JohannVonDiesel

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.

brandleesee avatar Jun 18 '22 07:06 brandleesee

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 avatar Jun 18 '22 21:06 joce

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. 🎉

joce avatar Jun 21 '22 20:06 joce

That would consolidate moren the code, thank you.

brandleesee avatar Jun 22 '22 09:06 brandleesee

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

brandleesee avatar Aug 22 '22 16:08 brandleesee