Skip to main content
Skip this menu

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - martinp2p

I started to invest in LendingClub notes in 2015 and gradually accumulated thousands of notes. A few months ago, I needed to liquidate a big portion of my holdings, but found it really inconvenient to do so efficiently.

The Folio website allowed me to set a markup / discount and list selected notes for sale, but for notes closer to the end of the term, I often hit negative YTM, even with little or no markup. When YTM was negative, listing was not allowed. It seemed that I had to manually adjust price for those notes, which was a lot of manual work given a large number of notes. If notes were not sold before listing expired, I had to do so over and over again, until the notes were eventually sold.

It was such a pain that I decided to create a software program to automate the process for me. The program will call LC API to get detailed information of all my notes, and then call FolioFN API to list each note for sale at a predefined markup. If a note is not sold before listing expires, it will automatically adjust the price lower and re-list, until it is eventually sold. It will also adjust the price automatically to avoid negative YTM.

With some trial and error, the program did what it was supposed to do. In the first two weeks I let the program run, it sold 858 notes for $13,631.75. After $136.51 of trading fees, the proceeds were $13,495.24. In comparison, the outstanding principal of all 858 notes was $13,269.46.

Not too bad. Although the rate notes got sold slowed down in the next few weeks, I was satisfied with the result. Because I could liquidate the majority of my notes in a relatively short period of time.

I thought some you guys may face the same problem when needing to liquidate your LC investments. If so, please reply and let me know. If there's enough interest, I can brush up the program a little bit so that it can be released publicly for anyone to use.


Foliofn - LC / taxes...?
« on: December 31, 1969, 07:00:00 PM »
If you use TurboTax to work out your tax returns, you can have LendingClub tax forms automatically imported into TurboTax and it's done. No manual number entry required.
Foliofn - LC / Folio API note selling
« on: October 10, 2018, 11:00:00 PM »
Hi Ran,

The old API worked for me (after some trial and error). Here is sample code in C#:

        const string investorId = "12345678";
        const string authKey = @"xxxxxxxxxxxxxxxxxxxxxxxxxxx";

        string baseAddress = string.Format("{0}/", investorId);
        HttpClient client = new HttpClient();
        client.BaseAddress = new Uri(baseAddress);
        var result = client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", authKey);

        HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, "trades/sell");
        request.Content = new StringContent(sellRequestBodyJson, Encoding.UTF8, "application/json");
        HttpResponseMessage response = await client.SendAsync(request);

        if (response.IsSuccessStatusCode)
            string jsonResult = await response.Content.ReadAsStringAsync();


Hope this helps!

from: Ran on March 07, 2018, 09:14:07 PM
Foliofn - LC / Folio API error?
« on: October 10, 2018, 11:00:00 PM »
503 service unavailable ... seems like a transient service unavailability on LC side. I wonder if you consistently get this error at different times, from different networks.

from: Joe6Luck on September 22, 2018, 07:28:54 PM
Foliofn - LC /
« on: October 10, 2018, 11:00:00 PM »
I have tested this API and observed the same behavior. It looks like a bug in LC's API service.

BTW, is the API documented publicly anywhere?

What I found was the accounts/<investor id>/trades APIs documented here: