Lending Club Auto Investing Tool
A simple tool written in python that will watch your LendingClub account and automatically invest cash as it becomes available.
I have tested this tool to the best of my ability but understand that it may have bugs. Use at your own risk!
I built this tool to solve the common annoyance when investing money in LendingClub and not all the loans get funded. It becomes a two steps forward, one step back process of reinvesting the cash every few days until it's all invested. For large sums of money this process can take over a month to complete.
How it works
When running it checks your account balances every 30 minutes, if the available cash meets or exceeds a threshold you set, it's all automatically invested in a portfolio with an average interest rate within your specified boundaries.
To put it simply, the tool does the same thing as if you were to: * Log into your account * Click Invest * Click More Options * Select an average interest rate portfolio you want with the slider * Now click Continue and to through the following two pages to invest in that portfolio.
Through easy-to-use command prompts, you can set the minimum cash to invest and the min/max average interest rate portfolio you want to invest in.
Find the latest version on github: https://github.com/jgillick/LendingClubAutoInvestor
Feel free to fork and contribute!
These can automatically be installed with pip:
sudo pip install python-daemon requests beautifulsoup4 html5lib argparse
The tool can be run directly from the bin directory or installed globally, by running:
sudo python ./setup.py install
To start the tool in the foreground:
The script will run in a loop and print all the output to the screen until you exit it with CTRL+C.
To run it as a background daemon:
$ lcinvestor start
All output will be sent to
To stop the daemon run:
$ lcinvestor stop
Help and Usage
To see the usage info:
$ lcinvestor --help
When you run the tool, it will take you though a series of prompts to define how to invest for you.
Email / Password
This is the email and password you use to sign into LendingClub. Your password will be kept in memory but never saved to file.
When the auto investor runs it will attempt to invest ALL available cash in your account into a investment portfolio. However, you will probably want it to wait until your account has a certain amount of cash before investing. For example, $25 will only invest in a single note, whereas $1000 could be invested across up to 40 notes.
Min/Max Percent interest rate
When the minimum available cash option is met, the auto investor will query the LendingClub API and get a list of possible investment portfolios available at that moment. To pick the appropriate one for you, it needs to know what the minimum and maximum AVERAGE interest rate value you will accept. The investment option closest to the maximum value will be chosen and all your available cash will be invested in it.
This value relates to finding a investment portfolio using the slider on the Invest page on LendingClub.com. It's not possible, at any given time, to define an absolute interest rate value, so we need to know the range that you will accept.
Note This does NOT filter out individual notes based on interest rate.
After the auto investor puts in an investment order, it can assign all the new notes to a specific portfolio. This option lets you choose from existing portfolios in your account or create a new one.
Experimental! These are the filters from the Invest page on LendingClub that will let you filter out investments by term length, loans you're already invested in and interest rate grades (A - G).
After all the options are set, you will be given a review screen to verify those values. If you approve, type Y + Enter to start the program. It will now check your account every 30 minutes to see if there is enough available cash in your account to invest.
Please help me by forking and committing enhancements!
The MIT License (MIT)
Copyright (c) 2013 Jeremy Gillick
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.