jgillick / LendingClubAutoInvestor

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

lcinvestor stopped working #25

Open Ashkaan opened 10 years ago

Ashkaan commented 10 years ago

daemon.log only says:

"started with pid 11665"

Nothing else. There have been absolutely no changes to the system. Here's my "pip list":

argparse (1.2.1) beautifulsoup4 (4.3.2) Cheetah (2.4.4) html5lib (0.999) lcinvestor (2.2.3) lendingclub (0.1.8) lockfile (0.9.1) Markdown (2.4.1) pause (0.1.2) pip (1.5.5) pybars (0.0.4) PyMeta (0.5.0) python-daemon (1.6) PyYAML (3.11) requests (2.3.0) setuptools (5.4.1) six (1.7.3) wsgiref (0.1.2)

jgillick commented 10 years ago

Interesting. What is the command you're using to start the program? What does it output when you add the '-v' flag to the command? Have you tried starting it not in daemon mode?

Ashkaan commented 10 years ago

Thanks for the quick response! My command is usually:

"/opt/bin/lcinvestor start --config /root/.lcinvestor/investing.json --email=my@email.com --pass=secret --quiet"

That normally works perfectly, in fact, it runs on startup.

Here's what happens with '-v' flag.

~ # lcinvestor

///--------------------------- $$$ ---------------------------\ | Welcome to the unofficial Lending Club investment tool |


To start, we need to log you into Lending Club (your password will never be saved)

LendingClub email [my@email.com]: ^CINFO: 2014-07-25 23:09 - Stopping investor...

DiskStation> lcinvestor -v DEBUG: 07-25 23:09 - Reading investment settings file: /root/.lcinvestor/investing.json (line #313) DEBUG: 07-25 23:09 - Investment settings JSON: {"version": "2.2.3", "profiles": {"none": {"min_percent": 10, "max_per_note": 50, "filter_id": 9147043, "portfolio": "Python", "min_cash": 25, "max_percent": 50}, "my@email.com": {"max_per_note": 50, "portfolio": "Python", "filters": null, "filter_id": 9147043, "min_percent": 10, "min_cash": 25, "max_percent": 50}}, "last_profile": "my@email.com", "format": 2} (line #320) DEBUG: 07-25 23:09 - Normalized settings JSON: {u'version': u'2.2.3', u'last_profile': u'my@email.com', u'profiles': {u'none': {u'min_percent': 10, u'max_per_note': 50, u'filter_id': 9147043, u'portfolio': u'Python', u'min_cash': 25, u'max_percent': 50}, u'my@email.com': {u'min_percent': 10, u'max_per_note': 50, u'filters': None, u'filter_id': 9147043, u'portfolio': u'Python', u'min_cash': 25, u'max_percent': 50}}, u'format': 2} (line #328)

///--------------------------- $$$ ---------------------------\ | Welcome to the unofficial Lending Club investment tool |


VERBOSE OUTPUT IS ON

To start, we need to log you into Lending Club (your password will never be saved)

LendingClub email [my@email.com]: Password:

Authenticating... DEBUG: 07-25 23:09 - Attempting to authenticate: my@email.com (line #71) DEBUG: 07-25 23:09 - POST request to: https://www.lendingclub.com/account/login.action (line #71) DEBUG: 07-25 23:09 - Status code: 302 (line #71) DEBUG: 07-25 23:09 - Status code: 302 (line #71) DEBUG: 07-25 23:09 - Redirected to: https://www.lendingclub.com/account/summary.action (line #71) DEBUG: 07-25 23:09 - Cookies: ['LC_FIRSTNAME', 'JSESSIONID-lcui-prod_nevada', 'www.lendingclub.com-prod_lcui_grp'](line #71) DEBUG: 07-25 23:09 - Select investing profile: my@email.com (line #368) DEBUG: 07-25 23:09 - Load profile: {u'min_percent': 10, u'max_per_note': 50, u'filters': None, u'filter_id': 9147043, u'portfolio': u'Python', u'min_cash': 25, u'max_percent': 50} (line #377) DEBUG: 07-25 23:09 - GET request to: https://www.lendingclub.com/browse/cashBalanceAj.action (line #71) DEBUG: 07-25 23:09 - Status code: 200 (line #71) DEBUG: 07-25 23:09 - Cash available: $6.37 (line #90) You have $6.37 in your account, free to invest

Now let's define what you want to do

========= Summary ========= Invest ALL available funds...

With at LEAST $25 available to invest Select a portfolio with an average interest rate between 10% - 50% Invest as much as $50 per loan note Add investments to: "Python" DEBUG: 07-25 23:09 - GET request to: https://www.lendingclub.com/browse/getSavedFilterAj.action (line #71) DEBUG: 07-25 23:09 - Status code: 200 (line #71)

Using saved filter "Mine" (id:9147043)

Would you like to use these settings? [Y/n]: y DEBUG: 07-25 23:09 - Save investment settings to file (line #193) DEBUG: 07-25 23:09 - Reading investment settings file: /root/.lcinvestor/investing.json (line #313) DEBUG: 07-25 23:09 - Investment settings JSON: {"version": "2.2.3", "profiles": {"none": {"min_percent": 10, "max_per_note": 50, "filter_id": 9147043, "portfolio": "Python", "min_cash": 25, "max_percent": 50}, "my@email.com": {"max_per_note": 50, "portfolio": "Python", "filters": null, "filter_id": 9147043, "min_percent": 10, "min_cash": 25, "max_percent": 50}}, "last_profile": "my@email.com", "format": 2} (line #320) DEBUG: 07-25 23:09 - Normalized settings JSON: {u'version': u'2.2.3', u'last_profile': u'my@email.com', u'profiles': {u'none': {u'min_percent': 10, u'max_per_note': 50, u'filter_id': 9147043, u'portfolio': u'Python', u'min_cash': 25, u'max_percent': 50}, u'my@email.com': {u'min_percent': 10, u'max_per_note': 50, u'filters': None, u'filter_id': 9147043, u'portfolio': u'Python', u'min_cash': 25, u'max_percent': 50}}, u'format': 2} (line #328) DEBUG: 07-25 23:09 - Saving investment settings file: {"version": "2.2.3", "last_profile": "my@email.com", "profiles": {"none": {"min_percent": 10, "max_per_note": 50, "filter_id": 9147043, "portfolio": "Python", "min_cash": 25, "max_percent": 50}, "my@email.com": {"max_per_note": 50, "portfolio": "Python", "filters": null, "filter_id": 9147043, "min_percent": 10, "min_cash": 25, "max_percent": 50}}, "format": 2} (line #220) DEBUG: 07-25 23:09 - Saved (line #226)

That's all we need. Now, as long as this is running, your account will be checked every 4 minutes and invested if enough funds are available."

And then it just sits there. Normally, it begins investing (or trying to invest), but in this case, it just sits. Nothing happens even after 4 minutes. Any ideas?

ghost commented 10 years ago

That's interesting, I am now seeing this too. I think, for some reason, it's doing the 1 hour delay first instead of trying to invest first. Leave it running for a little over an hour and see if it tries to invest. In the meantime I'll investigate why this is happening.

Ashkaan commented 10 years ago

You're right! It worked after an hour. Ok, I'm fine with that personally. Thank you so much!