Safe Haskell | None |
---|---|
Language | Haskell2010 |
LendingClub
- invest :: Authorization -> InvestorId -> Money -> Listing -> IO InvestResponse
- account :: Authorization -> InvestorId -> IO Account
- allListings :: Authorization -> IO (Vector Listing)
- notes :: Authorization -> InvestorId -> IO (Vector Note)
- listingFromNote :: Authorization -> Note -> IO (Maybe Listing)
- data Account = Account {}
- newtype Authorization = Authorization {}
- newtype InvestorId = InvestorId Int
- data InvestResponse
- = InvestResponse { }
- | InvestError {
- errors :: [ErrorMessage]
- data ErrorMessage = ErrorMessage {}
- data InvestConfirmation = InvestConfirmation {}
- data ExecutionStatus
- data Listing = Listing {}
- data Offer = Offer {
- requestAmount :: !Money
- rate :: !Double
- termInMonths :: !Int
- data Credit = Credit {
- fico :: !Int
- bankcardUtilization :: !Double
- isHomeowner :: !Bool
- debtToIncome :: !Double
- monthsEmployed :: !(Maybe Int)
- currentDelinquencies :: !(Maybe Int)
- amountDelinquent :: !(Maybe Money)
- openCreditLines :: !(Maybe Int)
- totOpenRevolvingAccts :: !(Maybe Int)
- revolvingBalance :: !(Maybe Money)
- revolvingAvailableCredit :: !(Maybe Int)
- data Grade
- data SubGrade
- data Purpose
- data Note = Note Int Int Int Double Int Text Grade Money Money Money
- type Money = Double
Commands
invest :: Authorization -> InvestorId -> Money -> Listing -> IO InvestResponse Source
account :: Authorization -> InvestorId -> IO Account Source
allListings :: Authorization -> IO (Vector Listing) Source
notes :: Authorization -> InvestorId -> IO (Vector Note) Source
listingFromNote :: Authorization -> Note -> IO (Maybe Listing) Source
Does not talk to LendingClub's listings endpoint. This uses in-memory data to retrieve listings.
TODO This thing is pretty much useles... Need to access historical listings
Account
A data structure for holding account information for LendingClub
Constructors
Account | |
Fields |
Authorization
Invest
data InvestResponse Source
Constructors
InvestResponse | |
Fields | |
InvestError | |
Fields
|
Instances
data ErrorMessage Source
Instances
data InvestConfirmation Source
Constructors
InvestConfirmation | |
Fields
|
data ExecutionStatus Source
Listing
Constructors
Listing | |
Data related to the listing's offer and contract terms
Constructors
Offer | |
Fields
|
Data related to the credibility of the listing
Constructors
Credit | |
Fields
|