I am trying to use this Python code to access the Folio API for the secondary market listings. Similar code worked for me in the primary Lending Club listings. This returns an error code [500], an internal error.
import requests
lc_InvestorId = "1111"
lc_apikey = "xxxx"
lc_module = 'secondarymarket/listings'
url = f"https://api.lendingclub.com/api/investor/v1/{lc_module}"
payload = {}
params = {'updatedSince':10000}
headers = {
'ContentType': "application/json",
'Accept': "application/json",
'Authorization': lc_apikey,
'X-LC-Application-Key': lc_InvestorId
}
response = requests.request("GET", url, data=payload, headers=headers, params=params)