Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A minimal client for the AlphaVantage API.
Currently only supports the TIME_SERIES_DAILY
& DIGITAL_CURRENCY_DAILY
endpoints.
Synopsis
- newtype Config = Config {}
- data AlphaVantageResponse a
- = ApiResponse a
- | ApiError Text
- data Prices = Prices {
- pOpen :: Scientific
- pHigh :: Scientific
- pLow :: Scientific
- pClose :: Scientific
- pVolume :: Scientific
- getDailyPrices :: Config -> Text -> Day -> Day -> IO (AlphaVantageResponse [(Day, Prices)])
- getDailyCryptoPrices :: Config -> Text -> Text -> Day -> Day -> IO (AlphaVantageResponse [(Day, Prices)])
Documentation
Configuration for the AlphaVantage API Client.
data AlphaVantageResponse a Source #
Wrapper type enumerating between successful responses and error responses with notes.
Instances
The Single-Day Price Quotes & Volume for a Stock,.
Prices | |
|
Instances
FromJSON Prices Source # | |
Defined in Web.AlphaVantage | |
Generic Prices Source # | |
Read Prices Source # | |
Show Prices Source # | |
Eq Prices Source # | |
type Rep Prices Source # | |
Defined in Web.AlphaVantage type Rep Prices = D1 ('MetaData "Prices" "Web.AlphaVantage" "hledger-stockquotes-0.1.3.0-J2HvfjiJ1gZ9yDtqhUMJgC" '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 Scientific))))) |