Automated Funding Curves