Market-Based Credit Ratings