Rand Stats

LendingClub

github:peelle

LendingClub

Lending Club API.

SYNOPSIS

A wrapper for the Lending Club API. It wraps all of the functions they currently provide. In the below examples, I modified the return #'s for my example query.

EXAMPLE

use LendingClub;
use Data::Dump;

my $lc = LendingClub.new(token => 'somesecrettoken', accountId => 12345 );

say Dump $lc.summary;'

=begin output
{
  accountTotal         => 1000000000.00.Rat,
  accruedInterest      => 1.00.Rat,
  availableCash        => 100.00.Rat,
  infundingBalance     => 100.Int,
  investorId           => 12345.Int,
  outstandingPrincipal => 100000000.Rat,
  receivedInterest     => 1.00.Rat,
  receivedLateFees     => 0.Int,
  receivedPrincipal    => 10.00.Rat,
  totalNotes           => 111.Int,
  totalPortfolios      => 5.Int,
}
=end output

my $dt = DateTime.new( year => 2016, month => 3, day => 3);
my $transfer = $lc.transferFunds( "LOAD_ONCE", 50.00, $dt.Str );

$lc.cancelTransfers( [ $transfer<transfers>[0]<transferId> ] );

my $avail_notes = $lc.listing;

# .... Some code to decide what notes to invest in from the list.....

$lc.submitOrders( 12345, @some_notes_i_want );


INSTALLATION

 > zef install LendingClub

DEPENDENCIES

METHODS

Queries for info.

Actions that affect your account.

BUGS

NOTE ON FRESHNESS

I no longer use Lending Club, but from time to time I will check if they've updated their API. If you notice an update, feel free to contact me via github or email.

TODO/HELP PLEASE

AUTHOR

James (Jeremy) Carman developer@peelle.org

ACKNOWLEDGEMENTS