On the foundation of a general theory of stocks