Portfolio Response

LendingClub2 Response Portfolio Module

class lendingclub2.response.portfolio.Portfolio(investor_id, response=None)

Get a representation of portfolio

create(name, description=None)

Create a new portfolio

Parameters:
  • name – string - name of portfolio
  • description – string - description of portfolio (default: None)
description

Get the new portfolio description. If no description, it’s an empty string.

Returns:string
id

Get the new portfolio ID

Returns:int
json

Get the JSON representation of the portfolio

Returns:JSON object
name

Get the new portolio name

Returns:string
url

Get the relevant URL

Returns:string
class lendingclub2.response.portfolio.Portfolios(investor_id)

Get the list of portfolios for a given account

url

Get the relevant URL

Returns:string