Copyright | (c) James M.C. Haver II 2016 |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
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
Query for yahoo finance api.
YQLQuery | |
|
newtype StockSymbol Source #
Use this type to encode toUrlPiece
or toText
(depending on Servant
version) for queries.
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.
YQLResponse | |
|
Quote data received from YQL.
Quote | |
|