Loan

LendingClub2 Loan Module

class lendingclub2.loan.Borrower(response)

Information of the borrower

address_state

Get the address state of the loaner.

Returns:string (two characters)
credit_score

Get the credit score of the loaner.

Returns:string
delinquency_in_2_years

The Number of 30+ days past-due incidences of delinquency in the borrower’s credit file for the past 2 years.

Returns:integer
dti

Debt-to-income ratio.

Returns:float
employed

Check if the borrower is employed.

Returns:boolean
employment_length

The length of employment.

Returns:int (-1 if not employed) - number of months being employed.
income_verified

LC had verified the income of the borrower.

Returns:boolean
inquiries_in_last_6_mo

The Number of inquiries by creditors during the past 6 months.

Returns:integer
months_since_last_delinq

The Number of months since the borrower’s last delinquency.

Returns:integer
mortgage_accounts

Number of mortgage accounts.

Returns:integer
public_records

Number of derogatory public records.

Returns:integer
revolving_balance

Total credit revolving balance.

Returns:float
title

Employment title.

Returns:string or None
class lendingclub2.loan.Listing

Loan listing, which can be used for filtering, and order submission later.

copy()

Get a shallow copy of the listing.

Returns:instance of Listing.
filter(*filters)

Apply all filters to the search that we had found before. If multiple filters are specified, the loan has to meet all the criteria to be included in the result.

Parameters:filters – iterable of Filter.
Returns:an instance of Listing.
search(filter_id=None, show_all=None)

Apply filters and search for loans matching the specifications.

sort(by_grade=True, by_term=False)

Sort the listing.

Parameters:
  • by_grade – boolean
  • by_term – boolean
class lendingclub2.loan.Loan(response)

Information of each loan.

approved

Check if the loan has been approved by LendingClub.

Returns:boolean
borrower

Get the information of the borrower.

Returns:instance of Borrower.
description

Get the description of the loan.

Returns:string or None
expected_default_rate

The expected default rate of the loan.

Returns:float
grade

Get the grade of the loan.

Returns:string
installment

Expected monthly payment owed by borrower.

Returns:float
interest_rate

Get the interest rate.

Returns:float (0.0 - 100.0)
investor_count

Get the number of investors already purchased the notes.

Returns:int
percent_funded

Find percentage of amount funded.

Returns:float (0.0 - 100.0)
purpose

Get the purpose of the loan.

Returns:string