fixed bug where stock history graph would try to pull data using hard-coded localhost instead of a routing function