SubmitOrder: Buy a note on the primary market

Description Usage Arguments Examples

View source: R/SubmitOrder.R

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

1
2
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 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

1
2
3
4
5
6
7
8
## 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)))

## End(Not run)

LendingClub documentation built on June 20, 2017, 9:07 a.m.