Lending Club is awesome, but their autoinvestment bot leaves a lot to be desired. It's not so smart - and doing things by hand is painful at best. I got the original scripts from Erick Gomez (@centralenergy99).
If you haven't used Lending Club - the payments show up more or less randomly any hour of the day and night. If you want to maximize returns you can either stay up all night waiting anxiously for some guy in rural Montana to get off his butt and make a payment, or run a bot on your computer to scan the web site periodically. I used to check weekly - but over all the return will start sinking just because you'll have dead money sitting your account 3-4 days.
To use the bots - first install Python on your system if you haven't already - use apt-get or if you're on Windows:
https://www.python.org/downloads/windows/
Don't download Python 3 - nobody uses it (Python 3 dweebs can keep their hate mail :) ). I always install stuff like this to c:\bin on Windows. Don't put anything into "Program Files" if you can help it. Those spaces in the name are poison for most applications. If you open a new cmd windows - running Python should put you in the interpreter. If now - put the c:\bin\python\ and c:\bin\python\scripts into the path in the Control Panel -> System and Security -> System -> Advanced System Settings windows under the Environment Variables table.
Install pip by downloading https://bootstrap.pypa.io/get-pip.py and running the application from the command line with `python get-pip.py`. Again, if you don't have the environment set up - pip won't run. It lands in the scripts directory of the Python install.
Open a new command window and install the libraries
pip install LendingClub
pip install lcinvestor
Now go to Lending Club and make a filter that matches what you want:
Save it to a sensible name. Then run this script from Python:
from lendingclub import LendingClub
from lendingclub.filters import Filter
lc = LendingClub(email='youremail@gmail.com', password='yourpassword')
lc.authenticate()
filters = lc.get_saved_filters()
print filters
This dumps a JSON string containing your saved filter name and a large integer. The integer is the value that you need. Then update this text file to include your values and save to mysettings.json:
{
// The minimum amount of cash you want to invest each round (at least 25)
"min_cash": 25,
// The minimum average interest rate portfolio that you will accept
"min_percent": 16.5,
// The maximum average interest rate portfolio that you will accept
"max_percent": 19,
// The most you want to invest in each loan note (must be at least $25)
"max_per_note": 25,
// The named portfolio to put all new investments in
// (only alphanumeric, spaces , _ - # and . are allowed)
// this is illegal - just trying for more traffic :-)
"portfolio": "@preimesberger rules",
// Saved filter ID (from LendingClub.com)
// NOTE: If set, this will override everything in the 'filters' hash, below
"filter_id": 0000000,
// Advanced filters
"filters": {
// Exclude loans you're already invested in
"exclude_existing": true,
// A loan note must be at least this percent funded
"funding_progress": 90,
// Include 36 month term loans
"term60month": true,
// Include 36 month term loans
"term36month": true,
// Loan grades
"grades": {
// Allow any loan grade
"All": true,
// Or select which loan grades you will accept, A - G
"A": false,
"B": false,
"C": false,
"D": false,
"E": false,
"F": false,
"G": false
}
}
}
Running lcinvestor --config=mysettings.json will then run the process automatically. You can add to your start up - or just run when you reboot. I never turn my PC's off - reboots shorten the hardware lifespan and I use it most of the day anyway. A normal PC running is a few dollars a year in most places anyway - and you'll make more than that back with this.
No comments:
Post a Comment