stocks-0.2.0.0: Library for the IEX Trading API

Safe HaskellNone
LanguageHaskell2010

Net.Stocks

Documentation

getChart :: Symbol -> IO (Maybe [Chart]) Source #

getBook :: Symbol -> IO (Maybe Book) Source #

getStats :: Symbol -> IO (Maybe Stats) Source #

getNewsItem :: Symbol -> IO (Maybe [NewsItem]) Source #

getOHLC :: Symbol -> IO (Maybe OHLC) Source #

getPrice :: Symbol -> IO (Maybe Double) Source #

getQuote :: Symbol -> IO (Maybe Quote) Source #

getSplit :: Symbol -> IO (Maybe [Split]) Source #

getTS :: Symbol -> IO (Maybe [TimeSeries]) Source #

getBatch :: [Symbol] -> [BatchQuery] -> IO (Maybe (Map String Batch)) Source #

data Batch Source #

Instances

Eq Batch Source # 

Methods

(==) :: Batch -> Batch -> Bool #

(/=) :: Batch -> Batch -> Bool #

Show Batch Source # 

Methods

showsPrec :: Int -> Batch -> ShowS #

show :: Batch -> String #

showList :: [Batch] -> ShowS #

Generic Batch Source # 

Associated Types

type Rep Batch :: * -> * #

Methods

from :: Batch -> Rep Batch x #

to :: Rep Batch x -> Batch #

ToJSON Batch Source # 
FromJSON Batch Source # 
type Rep Batch Source # 
type Rep Batch = D1 * (MetaData "Batch" "Net.Stocks" "stocks-0.2.0.0-CF9kEcEaEvMJaRKCxVkScD" False) (C1 * (MetaCons "Batch" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "news") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe [NewsItem]))) ((:*:) * (S1 * (MetaSel (Just Symbol "chart") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe [Chart]))) (S1 * (MetaSel (Just Symbol "company") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Company))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "delayedQuote") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe DelayedQuote))) (S1 * (MetaSel (Just Symbol "dividend") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe [Dividend])))) ((:*:) * (S1 * (MetaSel (Just Symbol "earnings") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Earnings))) (S1 * (MetaSel (Just Symbol "effectiveSpread") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe [EffectiveSpread])))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "financials") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Financials))) (S1 * (MetaSel (Just Symbol "stats") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Stats)))) ((:*:) * (S1 * (MetaSel (Just Symbol "ohlc") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe OHLC))) (S1 * (MetaSel (Just Symbol "priceTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Integer))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "previous") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Previous))) (S1 * (MetaSel (Just Symbol "quote") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Quote)))) ((:*:) * (S1 * (MetaSel (Just Symbol "split") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe [Split]))) (S1 * (MetaSel (Just Symbol "volumeByVenue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe [VolumeByVenue]))))))))