DataOnDemandProvider¶
-
class
DataOnDemandProvider
(token, tickers, start=datetime.datetime(2016, 1, 1, 0, 0), end=datetime.datetime(2016, 1, 30, 0, 0), verify=None)[source]¶ Bases:
qiskit.finance.data_providers._base_data_provider.BaseDataProvider
NASDAQ Data on Demand data provider.
Please see: https://github.com/Qiskit/qiskit-tutorials/blob/master/tutorials/finance/11_time_series.ipynb for instructions on use, which involve obtaining a NASDAQ DOD access token.
- Parameters
token (
str
) – data on demand access tokentickers (
Union
[str
,List
[str
]]) – tickersstart (
datetime
) – first data pointend (
datetime
) – last data point precedes this dateverify (
Union
[str
,bool
,None
]) – if verify is None, certify certificates will be used (default); if this is False, no certificates will be checked; if this is a string, it should be pointing to a certificate for the HTTPS connection to NASDAQ (dataondemand.nasdaq.com), either in the form of a CA_BUNDLE file or a directory wherein to look.
Methods
Returns random coordinates for visualisation purposes.
Returns the covariance matrix.
Returns a vector containing the mean value of each asset.
Returns a vector containing the mean value of each asset.
Returns a vector containing the mean value of each asset.
Returns time-series similarity matrix computed using dynamic time warping.
Loads data, thus enabling get_similarity_matrix and get_covariance_matrix methods in the base class.