data-link-python icon indicating copy to clipboard operation
data-link-python copied to clipboard

How to get available dataset name list?

Open clockwiser opened this issue 3 years ago • 2 comments

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?

clockwiser avatar Sep 04 '22 06:09 clockwiser

anyone anyone? would be useful...

dss010101 avatar Sep 27 '22 00:09 dss010101

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=<YOUR 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=<YOUR API KEY>

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

couture-ql avatar Oct 06 '22 14:10 couture-ql