Fix local loading issues, added market-analytics functions, market valuation