Toward a General Model of Financial Markets