Towards a new theory of finance