Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Stock = Stock {
- company :: String
- latestPrice :: Float
- latestTime :: String
- changePercent :: Float
- data Financials = Financials {
- reportDate :: String
- grossProfit :: Int
- costOfRevenue :: Int
- cashFlow :: Int
- newtype FinancialsList = FinancialsList {}
- data QueryType
- type Company = String
- stocksQuery :: Company -> String
- financialsQuery :: Company -> String
- peersQuery :: Company -> String
- priceQuery :: Company -> String
- getData :: FromJSON a => String -> QueryType -> IO (Maybe a)
- getNonJSONData :: String -> QueryType -> IO ByteString
Documentation
Stock data
Stock | |
|
data Financials Source #
Financials data
Financials | |
|
newtype FinancialsList Source #
stocksQuery :: Company -> String Source #
financialsQuery :: Company -> String Source #
peersQuery :: Company -> String Source #
priceQuery :: Company -> String Source #
getNonJSONData :: String -> QueryType -> IO ByteString Source #