A quantitative theory of information and unsecured credit