Copyright | (c) James M.C. Haver II 2016 |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
Web.Yahoo.Finance.YQL
Contents
Description
This module contains methods for accessing the Yahoo Finance YQL APIs.
- getQuotes :: YQLQuery -> ClientM YQLResponse
- yahooFinanceJsonBaseUrl :: BaseUrl
- data YQLQuery = YQLQuery {
- yqlQuery :: [StockSymbol]
- newtype StockSymbol = StockSymbol {}
- data YQLResponse = YQLResponse {}
- data Quote = Quote {}
Fetch Stock Quotes
getQuotes :: YQLQuery -> ClientM YQLResponse Source #
General client API to access Yahoo financial data. Quotes are returned in the order they are queried.
yahooFinanceJsonBaseUrl :: BaseUrl Source #
BaseUrl
for the Yahoo Finance YQL API. This represents
https://finance.yahoo.com
.
Types
newtype StockSymbol Source #
Use this type to encode toUrlPiece
or toText
(depending on Servant
version) for queries.
Constructors
StockSymbol | |
Fields |
Instances
Eq StockSymbol Source # | |
Ord StockSymbol Source # | |
Show StockSymbol Source # | |
Generic StockSymbol Source # | |
ToHttpApiData StockSymbol Source # | Surround
|
ToHttpApiData [StockSymbol] Source # | Connect separate
|
type Rep StockSymbol Source # | |
data YQLResponse Source #
Response from a YQL query.
Constructors
YQLResponse | |
Fields
|
Instances
Quote data received from YQL.
Constructors
Quote | |
Fields
|