table of contents
Finance::Quote::TwelveData(3pm) | User Contributed Perl Documentation | Finance::Quote::TwelveData(3pm) |
NAME¶
Finance::Quote::TwelveData - Obtain quotes from https://twelvedata.com
SYNOPSIS¶
use Finance::Quote; $q = Finance::Quote->new('TwelveData', twelvedata => {API_KEY => 'your-twelvedata-api-key'}); %info = $q->fetch('twelvedata', 'IBM', 'AAPL');
DESCRIPTION¶
This module fetches information from https://twelvedata.com.
This module is loaded by default on a Finance::Quote object. It's also possible to load it explicitly by placing "TwelveData" in the argument list to Finance::Quote->new().
This module provides the "twelvedata" fetch method.
API_KEY¶
https://twelvedata.com requires users to register and obtain an API key, which is a secret value written in hexidecimal.
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 TWELVEDATA_API_KEY.
FREE KEY LIMITS¶
The TwelveData free key limits usage to:
- 800 queries per day
- 8 queries per minute
LABELS RETURNED¶
The following labels may be returned by Finance::Quote::TwelveData
:
symbol name exchange currency isodate currency open high low close last
2024-09-22 | perl v5.38.2 |