Learn R Programming

LendingClub (version 2.0.0)

lc_SubmitOrder: Buy a note on the primary market

Description

Create an order to purchase a note. If the account has sufficient funding, the note will be purchased once the loan has passed through the funding stage.

Usage

lc_SubmitOrder(loanId, amount = 25, portfolioId = NULL, LC_CRED = NULL,
  quiet = T)

Arguments

loanId

Unique ID for loans. These can be found using the ListedLoans() function.

amount

Amount to be purchased

portfolioId

Unique ID for the portfolio. It can be found using the PortfoliosOwned() function.

LC_CRED

Credential object having class LendingClub_credential. This object can be created using the lc_MakeCredential() function. You can pass the object directly as an argument to the function or alternatively, it can be read from the global environment if it was stored as "LC_CRED".

quiet

Should the response be printed to the console

Examples

Run this code
# NOT RUN {
SubmitOrder(12345678, 25)
SubmitOrder(12345678, 25, "myPortfolio")

#For multiple loans in a single order
SubmitOrder(loanId=c(123, 456, 789), amount= c(rep(25,3)))
# }

Run the code above in your browser using DataLab