Skip to main content

Author Topic: Obtaining / calculating cash balance via API data

K
  • Posts: 61
Wanted to see if anyone has a quick method to do this, as LC doesn't have the account API endpoint which specifically states remaining cash balance like Prosper does. 
  • IP logged

B
  • ***
  • Full Member
  • Posts: 105
I think most of the third party automated investor sites ask for user name and password in addition to the API key so that they can log into a user's account and screen scrape available balance before purchasing notes.  I know they would prefer to have this available from the API so they would avoid any liability issues associated with having users' log in credentials.


Sent from my iPad using Tapatalk
  • IP logged

T
  • Posts: 6588
Well Prosper does have this available directly via API, my question was mainly for LC specifically if there was a clear way to calculate available cash balance from information currently provided via API download or from the Notes file.
  • IP logged

F
  • Posts: 282
You can try getting it through this link:

Code: [Select]
  • IP logged


k
  • Posts: 29
It's not a field.  It's data that LC is retrieving asynchronously from the server.  For example, on accessing https://www.lendingclub.com/browse/browse.action page, an Ajax call is made to https://www.lendingclub.com/browse/cashBalanceAj.action?rnd=some_random_number to obtain cash balance.

To gain insight into what calls are being made, the easiest way I found is to use Chrome.  For example, on the https://www.lendingclub.com/browse/browse.action page, right mouse click anywhere on the page and select "Inspect element".  Chrome will open a console at the bottom of the page.  Click on the "Network" tab.  Refresh the https://www.lendingclub.com/browse/browse.action page and you'll see all the Ajax calls being made and all the web resources (js, css, etc) being retrieved by the current page.
  • IP logged


T
  • Posts: 6588
Perfect, this is indeed very helpful, thanks so much
  • IP logged