| Copyright | (c) Owen Shepherd 2022 |
|---|---|
| License | MIT |
| Maintainer | owen@owen.cafe |
| Safe Haskell | None |
| Language | Haskell2010 |
SimFin.Types.PricesAndRatios
Description
Synopsis
- data PricesAndRatiosRow a = PricesAndRatiosRow {}
- newtype PricesAndRatiosKeyed a = PricesAndRatiosKeyed {}
Documentation
data PricesAndRatiosRow a Source #
Represents a company's prices and ratios.
Constructors
| PricesAndRatiosRow | |
Instances
| Functor PricesAndRatiosRow Source # | |
Defined in SimFin.Types.PricesAndRatios Methods fmap :: (a -> b) -> PricesAndRatiosRow a -> PricesAndRatiosRow b # (<$) :: a -> PricesAndRatiosRow b -> PricesAndRatiosRow a # | |
| Show a => Show (PricesAndRatiosRow a) Source # | |
Defined in SimFin.Types.PricesAndRatios Methods showsPrec :: Int -> PricesAndRatiosRow a -> ShowS # show :: PricesAndRatiosRow a -> String # showList :: [PricesAndRatiosRow a] -> ShowS # | |
| (Read a, RealFrac a) => FromJSON (PricesAndRatiosRow a) Source # | |
Defined in SimFin.Types.PricesAndRatios Methods parseJSON :: Value -> Parser (PricesAndRatiosRow a) # parseJSONList :: Value -> Parser [PricesAndRatiosRow a] # | |
newtype PricesAndRatiosKeyed a Source #
Wrapper to parse a PricesAndRatiosRow record from SimFin's JSON format. You probably don't want to use this.
Constructors
| PricesAndRatiosKeyed | |
Fields | |
Instances
| (Read a, RealFrac a) => FromJSON (PricesAndRatiosKeyed a) Source # | |
Defined in SimFin.Types.PricesAndRatios Methods parseJSON :: Value -> Parser (PricesAndRatiosKeyed a) # parseJSONList :: Value -> Parser [PricesAndRatiosKeyed a] # | |