Rails based trading system