table of contents
Finance::Quote::StockData(3) | User Contributed Perl Documentation | Finance::Quote::StockData(3) |
NAME¶
Finance::Quote::StockData - Obtain quotes from StockData.org
SYNOPSIS¶
use Finance::Quote; $q = Finance::Quote->new('StockData', stockdata => {API_KEY => 'your-stockdata-api-token'}); %info = $q->fetch('stockdata', 'AAPL'); # Only query foobar %info = $q->fetch('nyse', 'IBM'); # Failover to other sources OK.
DESCRIPTION¶
This module fetches information from <https://www.stockdata.org/>.
This module is loaded by default on a Finance::Quote object. It's also possible to load it explicitly by placing "stockdata" in the argument list to Finance::Quote->new().
This module provides "stockdata", "nyse", "nasdaq" fetch methods. Currently stock quote data is only available for securities traded on the US markets.
Information obtained by this module may be covered by New York Exchange terms and conditions.
API_KEY¶
<https://www.stockdata.org/> requires users to register and obtain an API key, which is also called a token. The token is a sequence of random characters.
The API key may be set by either providing a module specific hash to Finance::Quote->new as in the above example, or by setting the environment variable STOCKDATA_API_KEY.
LABELS RETURNED¶
The following labels are returned:
2024-06-10 | perl v5.40.0 |