Clicky

  • Welcome to P2P Lending / NFT Lending Forum.
 

ETH.LOAN

News:

This was the original Lend Academy peer-to-peer lending forum, since forensically restored by deBanked and now reintroduced to eth.loan.

To restore access to your user account, email [email protected]. We apologize for errors you may experience during the recovery.

Main Menu
NEW LOANS:   | 804.eth 2.500 Ξ | remoraid.eth 0.299 Ξ | remoraid.eth 0.299 Ξ | ALL

Obtaining / calculating cash balance via API data

Started by Peter, May 08, 2014, 11:00:00 PM

Previous topic - Next topic

Kombinator

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. 

BruiserB

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

TravelingPennies

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.

Fred

You can try getting it through this link:

Code: [Select]


kbenson99

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" class="bbc_link" target="_blank">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" class="bbc_link" target="_blank">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" class="bbc_link" target="_blank">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" class="bbc_link" target="_blank">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.


TravelingPennies

Perfect, this is indeed very helpful, thanks so much

NEW LOANS:   | 804.eth 2.500 Ξ | remoraid.eth 0.299 Ξ | remoraid.eth 0.299 Ξ | ALL