Nasdaq / data-link-python

A Python library for Nasdaq Data Link's RESTful API
MIT License
462 stars 76 forks source link

How to get available dataset name list? #26

Open clockwiser opened 2 years ago

clockwiser commented 2 years ago

In the example, need to set dataset name like below.

import nasdaqdatalink data = nasdaqdatalink.get('NSE/OIL')

'NSE/OIL' seems like a dataset name. So where is the list of available dataset names?

dss010101 commented 2 years ago

anyone anyone? would be useful...

couture-ql commented 2 years ago

Hi @msingh00,

Sorry for the delay -- we're still tuning this setup so issues and prs land to our client success team first so we can triage anything that comes in.

For now, we'll need to update our code examples. NSE has been deprecated since 2019-01-09 (the data is no longer updated).

To get the list of dataset codes within a time-series product, each TS product page usually has the instruction, along with how the dataset codes are organized. Generally, here is the API call to get all datasets within a time-series product: https://data.nasdaq.com/api/v3/databases/{time_series_product_code}/metadata?api_key=

This will download a zip file. The first column in the file, code lists all dataset codes within that time-series product

So for example, to get all dataset codes in CFTC - https://data.nasdaq.com/data/CFTC https://data.nasdaq.com/api/v3/databases/CFTC/metadata?api_key=

On the first row, code is 001601_F_L_ALL . The full dataset code is CFTC/001601_F_L_ALL