jgillick / LendingClubAutoInvestor

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

AutoInvestor instance has no attribute 'get_cash_balance' #10

Closed Gitol closed 11 years ago

Gitol commented 11 years ago

Hello, Your tools seem very promising. Thank you!

I tried to use the auto-investor, and after the authentication I got the Python error below (I made sure I got everything --update-d). I did not look at it in detail though.

Also the lcinvestor install does not seem to have settings.yaml (I had to copy it from the git version).

Traceback (most recent call last): File "/Users//ENV/bin/lcinvestor", line 180, in investor.setup() File "/Users//ENV/lib/python2.7/site-packages/lcinvestor/init.py", line 111, in setup print 'You have ${0} in your account, free to invest\n'.format(self.get_cash_balance()) AttributeError: AutoInvestor instance has no attribute 'get_cash_balance'

Thanks again for your contribution! Gitol

jgillick commented 11 years ago

Thanks for the note, looks like a pretty simple bug to fix. I'm heading to the desert for a week, so I might not get to it before I leave, but I'll address it as soon as I get back.

Cheers, Jeremy

jgillick commented 11 years ago

Never mind, I just looked at the bug and it was an easy fix. Try the latest version, 2.0.3, and let me know if it works for you.

Gitol commented 11 years ago

Thank you, that fixed it!

Now it complained about this once when the process was running (even if was already authenticated earlier): ERROR: 2013-08-23 23:05 - Could not authenticate: u'Please specify a valid email address'

But it worked the second time.

Many thanks for your quick answer!

jgillick commented 10 years ago

The authentication error should be fixed by the latest version from today (2.1.2).

Gitol commented 10 years ago

Great! Thanks!

When I ran the tool every 5 minutes (instead of 60 minutes), it got regularly locked after around 24 hours. It was not doing another query. I did not trace the code though, but do you know if LendingClub throttles the connection? I don't seem to have this issue when I run every 10 minutes (on two accounts in parallel).