Safe Haskell | None |
---|---|
Language | Haskell2010 |
A minimal client for the AlphaVantage API.
Currently only supports the Daily Time Series
endpoint.
Synopsis
- newtype Config = Config {}
- data Prices = Prices {
- pOpen :: Scientific
- pHigh :: Scientific
- pLow :: Scientific
- pClose :: Scientific
- pVolume :: Integer
- getDailyPrices :: Config -> Text -> Day -> Day -> IO [(Day, Prices)]
Documentation
Configuration for the AlphaVantage API Client.
The Single-Day Price Quotes & Volume for a Stock,.
Prices | |
|
Instances
Eq Prices Source # | |
Read Prices Source # | |
Show Prices Source # | |
Generic Prices Source # | |
FromJSON Prices Source # | |
type Rep Prices Source # | |
Defined in Web.AlphaVantage type Rep Prices = D1 (MetaData "Prices" "Web.AlphaVantage" "hledger-stockquotes-0.1.0.0-IaCyacNViJkKaK0mSH2CXJ" False) (C1 (MetaCons "Prices" PrefixI True) ((S1 (MetaSel (Just "pOpen") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Scientific) :*: S1 (MetaSel (Just "pHigh") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Scientific)) :*: (S1 (MetaSel (Just "pLow") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Scientific) :*: (S1 (MetaSel (Just "pClose") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Scientific) :*: S1 (MetaSel (Just "pVolume") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer))))) |