yahoo_finanza v0.1.0 YahooFinanza.QuoteFetcher
The YahooFinanza QuoteFetcher Module fetches a single quote given a stock symbol from the Yahoo Finance API.
Methods
get/1
Summary
Functions
The get/1 method accepts a string containing the stock symbol and returns the quote for the given symbol from the Yahoo Finance API or an error if an invalid symbol was given
Functions
The get/1 method accepts a string containing the stock symbol and returns the quote for the given symbol from the Yahoo Finance API or an error if an invalid symbol was given.
Examples
iex> YahooFinanza.QuoteFetcher.get "AAPL"
{:ok, %{"Symbol" => "AAPL", "Ask" => "119.5", ...}}
iex> YahooFinanza.Quote.fetch_quote "i don't exist"
{:error, "invalid symbol"}