write market fetching for market index buttons