Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get available dataset name list? #26

Open
clockwiser opened this issue Sep 4, 2022 · 2 comments
Open

How to get available dataset name list? #26

clockwiser opened this issue Sep 4, 2022 · 2 comments

Comments

@clockwiser
Copy link

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
Copy link

anyone anyone? would be useful...

@couture-ql
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants