jgillick / LendingClubAutoInvestor

A simple command line tool that will automatically invest all cash that becomes available
MIT License
47 stars 21 forks source link

Autoinvest Portfolio Size Decrements #17

Open Robbo67 opened 10 years ago

Robbo67 commented 10 years ago

Thanks so much for putting this together. I am not a programmer but was able to follow your set-up instructions and get it all working.

I am new to LC and am in the process of building out my initial loan portfolio. I want to use this tool to grab C rated notes that meet my criteria before they get all snapped up minutes after they are released.

My issue is that my saved filter typically only returns a few notes (when run when new loans are released) and my account currently contains quite a large cash balance. The app sequentially tries to find a portfolio for all of my cash (no luck), 75% of my cash (no luck), 50% of my cash (no luck), 25% of my cash (no luck), then 0.6% of my cash.

The result is it ends up buying loan sizes that are smaller than my targeted loan size.

Maybe this could be addressed by either (1) adding a maximum cash to invest each round variable (which you then scale down as above) or (2) adding several more portfolio size attempts (e.g. 12.5% of cash balance, 6%, 3%, 1.5%, 1%)?

Robbo67 commented 10 years ago

Upon further testing-- it appears that after the 25% portfolio size, it then tries the "min cash" amount.

jgillick commented 10 years ago

That's an interesting point. I'll consider adding a maximum to invest option in the future. I also like your second idea of adding more portfolio size attempts. I was trying to keep the number of requests down, but I suppose that really wouldn't matter. I'll look into it.

Robbo67 commented 10 years ago

Jeremy-- I played around with the init.py file and figured out how to change the starting portfolio target size (the cash variable) and the decrement size. End result though (off a saved filter) was a purchase of one note (instead of three) at 3x my max note size (I posted about it in the note amount over limit thread).

Is it possible to pull the loan IDs out of a saved filter and just batch purchase a fixed amount of each?

jgillick commented 10 years ago

It's hard to know why the program did this without knowing the code you changed. It is possible to do a pure note search with a saved filter, but that's not built into the tool. lcinvestor is only built to search for portfolios through LendingClub. Luckily, I created the LendingClub python API module that you can use to do note searches (and MANY other things) -- https://github.com/jgillick/LendingClub

This would, of course, mean writing the program from scratch, but the README for the API has some examples that should help you do this pretty quickly. At this point I'm trying to keep the lcinvestor simple and dedicated to just doing one thing well -- automatically investing in portfolios curated by LendingClub.

I hope that helps.

Robbo67 commented 10 years ago

Thanks Jeremy. I spent a few hours last night working with your LendingClub API (and a buddy who codes) and was able to put together a program to do exactly what I wanted.

jgillick commented 10 years ago

Excellent! I'm really glad it helped.

Ashkaan commented 9 years ago

Robbo67, please share with the group! My friends and I are looking for a way to invest an exact amount per note and we don't care about the portfolios.

Ashkaan commented 9 years ago

jgillick, do you have any plans of allowing users to invest a specific amount per note in your script? (maybe add a min per note)

jgillick commented 9 years ago

I have no plans for that since all this tool does is plug into LendingClub's portfolio builder tool. However, the LendingClub API Python module I wrote will let you do that. You'll just have to write a python script around it.

Ashkaan commented 9 years ago

Thank you.. Have you seen any forums or sites where people wrote such a script?

— Ashkaan Hassan, Esq. Attorney-At-Law Ashkaan.Info http://www.Ashkaan.Info

CONFIDENTIALITY NOTICE: The information contained in this electronic message and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail, and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. Unintended transmission shall not constitute waiver of any applicable legal protection afforded to this electronic message and any attached documents.

On Tue, Feb 17, 2015 at 10:40 AM, Jeremy Gillick notifications@github.com wrote:

I have no plans for that since all this tool does is plug into LendingClub's portfolio builder tool https://www.lendingclub.com/portfolio/autoInvest.action. However, the LendingClub API https://github.com/jgillick/LendingClub Python module I wrote will let you do that. You'll have to write a python script around it.

— Reply to this email directly or view it on GitHub https://github.com/jgillick/LendingClubAutoInvestor/issues/17#issuecomment-74724400 .

jgillick commented 9 years ago

I have not, but here are a few code examples in the API readme that you could start from.

jgillick commented 9 years ago

Sorry, I meant to say "...there are a few code examples..."

jthermiz commented 9 years ago

Hello jgillick,

First let me say thank you for your LendingClub libraries. They have been very helpful to me for the past 1+ years!

I wasn't sure the best way to send you this message, so I figured I send it through here since it's an active page. I was wondering if you considered adding the following feature, which to my knowledge does not exist anywhere yet:

Automating selling and buying notes on the "Notes Trading Platform"

I personally think this would be a great feature that many could benefit from.

Thanks again for work!

jgillick commented 9 years ago

Hi @whitepine, thank you for the suggestion, however, I currently do not have any plans to build a tool for the Notes Trading Platform. These days I have very limited time and cannot put another project on my plate.

Cheers, Jeremy