Skip to main content

A simple tool that will watch your LendingClub account and automatically invest cash as it becomes available.

Project description

Lending Club Auto Investing Tool

About

A simple tool written in python that will watch your LendingClub account and automatically invest cash as it becomes available.

Disclaimer

I have tested this tool to the best of my ability but understand that it may have bugs. Use at your own risk!

Why?

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.

Flexibility

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.

Source

Find the latest version on github: https://github.com/jgillick/LendingClubAutoInvestor

Feel free to fork and contribute!

Requirements

  • python-daemon

  • requests

  • beautifulsoup4

  • html5lib

  • argparse

These can automatically be installed with pip:

sudo pip install python-daemon requests beautifulsoup4 html5lib argparse

Install

The tool can be run directly from the bin directory or installed globally, by running:

sudo python ./setup.py install

Running

Foreground

To start the tool in the foreground:

$ lcinvestor

The script will run in a loop and print all the output to the screen until you exit it with CTRL+C.

Background (daemon)

To run it as a background daemon:

$ lcinvestor start

All output will be sent to /var/log/daemon.log.

To stop the daemon run:

$ lcinvestor stop

Help and Usage

To see the usage info:

$ lcinvestor --help

Options

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.

Minimum cash

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.

Named portfolio

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.

Advanced Filters

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).

Final Review

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.

Help out

Please help me by forking and committing enhancements!

License

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lcinvestor-1.0.3.tar.gz (22.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page