Finance::Quote::TwelveData3pm
Obtain quotes from https://twelvedata.com
Usage
use Finance::Quote;$q = Finance::Quote->new('TwelveData', twelvedata => {API_KEY => 'your-twelvedata-api-key'});%info = $q->fetch('twelvedata', 'IBM', 'AAPL');
Overview
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