{
"info": {
"author": "Jeremy Gillick",
"author_email": "none@none.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Office/Business :: Financial",
"Topic :: Utilities"
],
"description": "Lending Club API\n================\n\nA stand-alone python module for interacting with your Lending Club account. In a nutshell, it lets you check your cash balance, search for notes, build orders, invest and more.\n\nDisclaimer\n----------\n\nI have tested this tool to the best of my ability, but understand that it may have bugs. Use at your own risk!\n\nDependencies\n------------\n\nThe following Python libraries are required (ignore if installing with pip):\n\n* `requests `_\n* `beautifulsoup4 `_\n* `html5lib `_\n* `pybars `_\n\n\nInstall with PIP\n----------------\n\nThe easiest way to install is with `pip `_::\n\n sudo pip install lendingclub\n\nInstall Manually\n-----------------\n\nFirst make sure the dependencies are instaled and then run::\n\n sudo python ./setup.py install\n\nDocumentation\n-------------\nView the full `API documentation `_.\n\nExamples\n--------\nHere are a few examples, in the python interactive shell, of using the Lending Club API module.\n\nSimple Search and Order\n~~~~~~~~~~~~~~~~~~~~~~~\nSearching for grade B loans and investing $25 in the first one you find::\n\n >>> from lendingclub import LendingClub\n >>> from lendingclub.filters import Filter\n >>> lc = LendingClub()\n >>> lc.authenticate()\n Email:test@test.com\n Password:\n True\n >>> filters = Filter()\n >>> filters['grades']['B'] = True # Filter for only B grade loans\n >>> results = lc.search(filters) # Search using this filter\n >>> len(results['loans']) # See how many results returned\n 100\n >>> results['loans'][0]['loan_id'] # See the loan_id of the first loan\n 1763030\n >>> order = lc.start_order() # Start a new investment order\n >>> order.add(1763030, 25) # Add the first loan to the order with a $25 investment\n >>> order.execute() # Execute the order\n 1861879\n >>> order.order_id # See the order ID\n 1861879\n >>> order.assign_to_portfolio('Foo') # Assign the loans in this order to a portfolio called 'Foo'\n True\n\nInvest in a Portfolio of Loans\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nHere we want to invest $400 in a portfolio with only B, C, D and E grade notes with an average overall return between 17% - 19%. This similar to finding a portfolio in the 'Invest' section on lendingclub.com::\n\n >>> from lendingclub import LendingClub\n >>> from lendingclub.filters import Filter\n >>> lc = LendingClub()\n >>> lc.authenticate()\n Email:test@test.com\n Password:\n True\n >>> filters = Filter() # Set the filters\n >>> filters['grades']['B'] = True # See Pro Tips for a shorter way to do this\n >>> filters['grades']['C'] = True\n >>> filters['grades']['D'] = True\n >>> filters['grades']['E'] = True\n >>> lc.get_cash_balance() # See the cash you have available for investing\n 463.80000000000001\n # Find a portfolio to invest in ($400, between 17-19%, $25 per note)\n >>> portfolio = lc.build_portfolio(400,\n min_percent=17.0,\n max_percent=19.0,\n max_per_note=25,\n filters=filters)\n\n >>> len(portfolio['loan_fractions']) # See how many loans are in this portfolio\n 16\n >>> loans_notes = portfolio['loan_fractions']\n >>> order = lc.start_order() # Start a new order\n >>> order.add_batch(loans_notes) # Add the loans to the order\n >>> order.execute() # Execute the order\n 1861880\n\nYour Loan Notes\n~~~~~~~~~~~~~~~\nGet a list of the loan notes that you have **already** invested in (by default this will only return 100 at a time)::\n\n >>> from lendingclub import LendingClub\n >>> lc = LendingClub()\n >>> lc.authenticate()\n Email:test@test.com\n Password:\n True\n >>> notes = lc.my_notes() # Get the first 100 loan notes\n >>> len(notes['loans'])\n 100\n >>> notes['total'] # See the total number of loan notes you have\n 630\n >>> notes = lc.my_notes(start_index=100) # Get the next 100 loan notes\n >>> len(notes['loans'])\n 100\n >>> notes = lc.my_notes(get_all=True) # Get all notes in one request (may be slow)\n >>> len(notes['loans'])\n 630\n\nUsing Saved Filters\n~~~~~~~~~~~~~~~~~~~\nUse a filter saved on lendingclub.com to search for loans **SEE NOTE BELOW**::\n\n >>> from lendingclub import LendingClub\n >>> from lendingclub.filters import SavedFilter\n >>> lc = LendingClub()\n >>> lc.authenticate()\n Email:test@test.com\n Password:\n True\n >>> filters = lc.get_saved_filters() # Get a list of all saved filters on LendinClub.com\n >>> print filters # I've pretty printed the output for you\n [\n ,\n \n ]\n >>> filter = lc.get_saved_filter(23456) # Load a saved filter by ID 7611034\n >>> filter.name\n u'Only A'\n >>> results = lc.search(filter) # Search for loan notes with that filter\n >>> len(results['loans'])\n 100\n\n**NOTE:** When using saved search filters you should always confirm that the returned results match your filters. This is because LendingClub's search API is not very forgiving. When we get the saved filter from the server and then send it to the search API, if any part of it has been altered or becomes corrupt, LendingClub will do a wildcard search instead of using the filter. The code in this python module takes great care to keep the filter pristine and check for inconsistencies, but that's no substitute for the individual investor's diligence.\n\nBatch Investing\n~~~~~~~~~~~~~~~\nInvest in a list of loans in one action::\n\n >>> from lendingclub import LendingClub\n >>> lc = LendingClub(email='test@test.com', password='secret123')\n >>> lc.authenticate()\n True\n >>> loans = [1234, 2345, 3456] # Create a list of loan IDs\n >>> order = lc.start_order() # Start a new order\n >>> order.add_batch(loans, 25) # Invest $25 in each loan\n >>> order.execute() # Execute the order\n 1861880\n\n\nGet More Note Details\n~~~~~~~~~~~~~~~~~~~~~\nWhen browsing notes, you can get more details about a note by requesting the \"loanDetailAj.action\" URL::\n\n >>> import pprint as pp\n >>> from lendingclub import LendingClub\n >>> from lendingclub.filters import Filter\n >>> lc = LendingClub()\n >>> lc.authenticate()\n True\n >>> filters = Filter()\n >>> filters['grades']['B'] = True\n >>> results = lc.search(filters)\n >>> load_id = results['loans'][0]['loan_id']\n >>> request = lc.session.get('/browse/loanDetailAj.action', query={'loan_id': load_id} )\n >>> details = request.json()\n >>> pp.pprint(details)\n {u'DTI': u'21.24',\n u'amountDelinquent': u'$0.00',\n u'collectionsExcludingMedical': u'0',\n u'completeTenure': u'10+ years',\n u'creditDateShort': u'7/14/14',\n ...\n u'verifiedIncome': u'false'}\n\n\nPro Tips\n--------\n\nEmail/Password\n~~~~~~~~~~~~~~\nSet your email/password when you initialize the LendingClub object::\n\n lc = LendingClub(email='you@your.com', password='illnevertell')\n\nFilter One-liner\n~~~~~~~~~~~~~~~~\nDefine some of your filters in the init line::\n\n filters = Filter({'grades': {'B': True, 'C': True, 'D': True, 'E': True}})\n\n\nLicense\n=======\nThe MIT License (MIT)\n\nCopyright (c) 2013 Jeremy Gillick\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://github.com/jgillick/LendingClub",
"keywords": "lendingclub investing api lending club",
"license": "The MIT License (MIT)\n\nCopyright (c) 2013 Jeremy Gillick\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.",
"maintainer": null,
"maintainer_email": null,
"name": "lendingclub",
"package_url": "https://pypi.org/project/lendingclub/",
"platform": "osx,posix,linux,windows",
"project_url": "https://pypi.org/project/lendingclub/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "http://github.com/jgillick/LendingClub"
},
"release_url": "https://pypi.org/project/lendingclub/0.1.10/",
"requires_dist": null,
"requires_python": null,
"summary": "An library for Lending Club that lets you check your cash balance, search for notes, build orders and invest.",
"version": "0.1.10"
},
"last_serial": 2072091,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "e5294a8d31bd4085f3685f75b3689de3",
"sha256": "dfe56e0e17ff3b70a0d780684c166df37ee932e03f5718e965bcea584b95fed1"
},
"downloads": -1,
"filename": "lendingclub-0.1.tar.gz",
"has_sig": false,
"md5_digest": "e5294a8d31bd4085f3685f75b3689de3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 37830,
"upload_time": "2013-07-24T20:10:42",
"url": "https://files.pythonhosted.org/packages/3a/6c/0ac877aecd44fea861699df3a41e25ee005d77b032379dc62b104660c12b/lendingclub-0.1.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "9632c4aa51ff2d4cece24d96e2a37425",
"sha256": "31524dee0012abc21add584a40e5f1bf85bb65976005784a63a00d01f3928aa6"
},
"downloads": -1,
"filename": "lendingclub-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "9632c4aa51ff2d4cece24d96e2a37425",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 37697,
"upload_time": "2013-07-30T04:00:44",
"url": "https://files.pythonhosted.org/packages/6f/09/774c45d689d77390b68eb8a9f7a63cadd932c6d10b60baa61a809811540a/lendingclub-0.1.1.tar.gz"
}
],
"0.1.10": [
{
"comment_text": "",
"digests": {
"md5": "bd3eda87afd2ca13364ac63ab0bc71ef",
"sha256": "225d8a14499b93111a1fe053b91649b1b81cb84722d8b945cd0188b1125b5c26"
},
"downloads": -1,
"filename": "lendingclub-0.1.10.tar.gz",
"has_sig": false,
"md5_digest": "bd3eda87afd2ca13364ac63ab0bc71ef",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 44396,
"upload_time": "2016-04-19T17:58:35",
"url": "https://files.pythonhosted.org/packages/85/9d/63ed6f3736f5d6794467f2e8b42f0018a30aaa7e2a46229155468976429e/lendingclub-0.1.10.tar.gz"
}
],
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "7dfc5bb46d86255d1d2bd08bb009714e",
"sha256": "c0c5425459c1332c2a94b47006bf2de9f0ab06dba2fbee9cebf8cec343918f9d"
},
"downloads": -1,
"filename": "lendingclub-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "7dfc5bb46d86255d1d2bd08bb009714e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 40931,
"upload_time": "2013-07-31T08:07:02",
"url": "https://files.pythonhosted.org/packages/f0/44/7258d0a5ca93a55e4ebb5f89ade0bab96f0014f25d6d3c9a9c6d2c314793/lendingclub-0.1.2.tar.gz"
}
],
"0.1.3": [
{
"comment_text": "",
"digests": {
"md5": "d2d62a38c3e3b77f001f6329ebbb0c50",
"sha256": "abb2bdc53d2aa445084ac27620ec821a3e2e8973e1118846236f67d05300dad9"
},
"downloads": -1,
"filename": "lendingclub-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "d2d62a38c3e3b77f001f6329ebbb0c50",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 41159,
"upload_time": "2013-09-04T23:17:18",
"url": "https://files.pythonhosted.org/packages/56/6e/cf3da0c5bb2c3cdb28f261bf2f2296fc80e98afff7f10698f87e841e1910/lendingclub-0.1.3.tar.gz"
}
],
"0.1.4": [
{
"comment_text": "",
"digests": {
"md5": "9bdac43306fdb8f310707161103e805d",
"sha256": "fd0ba55f5e60c430334344f3c81485fe8d04821b651cfd4ee1b68713c3de9d49"
},
"downloads": -1,
"filename": "lendingclub-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "9bdac43306fdb8f310707161103e805d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 42503,
"upload_time": "2013-09-05T23:20:44",
"url": "https://files.pythonhosted.org/packages/3b/f4/68179c61c41e9d47f96ac0c85273f3269ae989ba91672b8c5ea11a5bb2c7/lendingclub-0.1.4.tar.gz"
}
],
"0.1.5": [
{
"comment_text": "",
"digests": {
"md5": "05d3a94f3207c4b51a280fa75f94a87c",
"sha256": "c8e2cdc96e5428bd73162a800d8147c500ca1ca777cfc27b1b2e0f20eef9e4d6"
},
"downloads": -1,
"filename": "lendingclub-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "05d3a94f3207c4b51a280fa75f94a87c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 42566,
"upload_time": "2013-09-05T23:49:06",
"url": "https://files.pythonhosted.org/packages/d2/39/aa2c88edb1bbc6d0986e78d86457dc58e07d730e5f4d0f463bf4e4a0c829/lendingclub-0.1.5.tar.gz"
}
],
"0.1.6": [
{
"comment_text": "",
"digests": {
"md5": "28251fe2387653317f880ef4a3cb4862",
"sha256": "6a65e254c3dd7b82f67f8bfd8412c1ae739b76bea6bf1c848295cd4ea0d8fb47"
},
"downloads": -1,
"filename": "lendingclub-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "28251fe2387653317f880ef4a3cb4862",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 42578,
"upload_time": "2013-11-06T19:24:48",
"url": "https://files.pythonhosted.org/packages/ff/c4/4954a55c9221c9dcf3d8df13ed21ecc806650a46ac189f34c22ec0c43b5d/lendingclub-0.1.6.tar.gz"
}
],
"0.1.7": [
{
"comment_text": "",
"digests": {
"md5": "2ef3e545256336ff8ad42d347a7a39b6",
"sha256": "2c73ac61ce235f9e73c57ffb5191fcf5d15a44beb7c898fa0d75751ee5cdd47b"
},
"downloads": -1,
"filename": "lendingclub-0.1.7.tar.gz",
"has_sig": false,
"md5_digest": "2ef3e545256336ff8ad42d347a7a39b6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 42969,
"upload_time": "2014-03-07T00:12:03",
"url": "https://files.pythonhosted.org/packages/7a/56/81715c4de2e42f1bfa5a2542bf06e9b9a39200a0a6f0934c773942ad8fec/lendingclub-0.1.7.tar.gz"
}
],
"0.1.7\n": [],
"0.1.8": [
{
"comment_text": "",
"digests": {
"md5": "f67303957bce45fe927d87d50342b341",
"sha256": "25371f25962865d074e6890b35dfb00c6e8725a839c316f6bee11ec2a40ff1b9"
},
"downloads": -1,
"filename": "lendingclub-0.1.8.tar.gz",
"has_sig": false,
"md5_digest": "f67303957bce45fe927d87d50342b341",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 43027,
"upload_time": "2014-05-02T22:04:50",
"url": "https://files.pythonhosted.org/packages/40/59/d4392fe9b5013cd977ddc7dd937b0a01f5d320a07c4f2ad694c2b4ec596f/lendingclub-0.1.8.tar.gz"
}
],
"0.1b": [
{
"comment_text": "",
"digests": {
"md5": "37f403ad272d22757cf8a6e821df0416",
"sha256": "b132671b339777d463c58d2d6d86671ec9085e3ee0b1de8db99e54429034b50d"
},
"downloads": -1,
"filename": "lendingclub-0.1b.tar.gz",
"has_sig": false,
"md5_digest": "37f403ad272d22757cf8a6e821df0416",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 20000,
"upload_time": "2013-07-01T20:49:24",
"url": "https://files.pythonhosted.org/packages/69/de/6cb5c5b692a08750fe61ad5af4cfe754940e5c7b4d91d3117658674fbc3e/lendingclub-0.1b.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "bd3eda87afd2ca13364ac63ab0bc71ef",
"sha256": "225d8a14499b93111a1fe053b91649b1b81cb84722d8b945cd0188b1125b5c26"
},
"downloads": -1,
"filename": "lendingclub-0.1.10.tar.gz",
"has_sig": false,
"md5_digest": "bd3eda87afd2ca13364ac63ab0bc71ef",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 44396,
"upload_time": "2016-04-19T17:58:35",
"url": "https://files.pythonhosted.org/packages/85/9d/63ed6f3736f5d6794467f2e8b42f0018a30aaa7e2a46229155468976429e/lendingclub-0.1.10.tar.gz"
}
]
}