Learning by lending securities