Copyright | (c) James M.C. Haver II 2016 |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
This is an internal module. Use at your own risk.
- type YahooFinanceYQLApi = "v1" :> ("public" :> ("yql" :> (QueryParam "q" YQLQuery :> (QueryParam "format" Text :> (QueryParam "env" Text :> (QueryParam "callback" Text :> Get '[JSON] YQLResponse))))))
- getQuotesInternal :: Maybe YQLQuery -> Maybe Text -> Maybe Text -> Maybe Text -> ClientM YQLResponse
Documentation
type YahooFinanceYQLApi = "v1" :> ("public" :> ("yql" :> (QueryParam "q" YQLQuery :> (QueryParam "format" Text :> (QueryParam "env" Text :> (QueryParam "callback" Text :> Get '[JSON] YQLResponse)))))) Source #
Low-level Servant definition of the Yahoo Finance YQL client API.
getQuotesInternal :: Maybe YQLQuery -> Maybe Text -> Maybe Text -> Maybe Text -> ClientM YQLResponse Source #
QueryParam
are treated as maybes but Yahoo requires that all the fields
be filled except for "callback". Quotes are returned in the order they are
queried.
format default is "json" env default is "store:/datatables.orgalltableswithkeys" The order of arguments varies slightly with each version of Servant.