yahoo_finanza v0.2.1 YahooFinanza.Quote

The YahooFinanza Quote Module implements the GenServer Behavior and is a Supervised Worker. This module provides methods to get the quote for a single symbol or multiple symbols.

Methods

fetch/1

Summary

Functions

The fetch/1 method accepts a list of strings containing a symbol and returns the quotes as a list of Maps. If an invalid symbol is in the list, it will be ignored

Functions

fetch(symbols)

The fetch/1 method accepts a list of strings containing a symbol and returns the quotes as a list of Maps. If an invalid symbol is in the list, it will be ignored.

Example

iex> YahooFinanza.Quote.fetch ["AAPL", "FB", "I don't exist"]

{:ok, [%{"Symbol" => "AAPL", "Ask" => "119.5", ...}, %{"Symbol" => "FB", "Ask" => "130.5", ...} }
start_link()