Rails port of https://github.com/fengb/pynvest