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("
https://api.lendingclub.com/api/investor/v1/accounts/{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!
Anyone successfully used the latest Folio Notes API to post notes for sell?
The API document said you may POST to url https://api.lendingclub.com/api/investor/v1/secondarymarket/accounts/ACCOUNTID/orders
with JSON content like [{"noteId":"NOTEID","price":25.00, "orderType":"SELL","expirationDate":"2018-03-14"}].
I tried but only get 400 bad request which means my JSON content is rejected. Now I am wondering whether that API document simply contains error.