Can I use the API to download a single column from a data feed?
Note that each data feed on Nasdaq Data Link is delivered through one of the following Nasdaq Data Link APIs:
- Streaming API for real-time data
- REST API for real-time or delayed data
- REST API for time-series
- REST API for tables
You can learn more about these APIs and data formats here.
If you’re using the Streaming API for real-time data, you can use the filterstream operation to filter by symbols and/or msg types. If you are using the Java SDK, see example 10 here. If you are using the Python SDK, see example 10 here.
If you're using the REST API for time-series or tables, please see below:
To download a single column from a time-series, use the column_index=n parameter, like this:
The above API call will return the close column (column 4) from the XNAS/ACIW time-series because column=4. Note that column 0 is the date column and is always returned. Data begins at column 1.
To download a specific column from a table, use the qopts.columns= parameter, like this:
The above API call will return the ticker column from SHARADAR/SEP table because qopts.columns=ticker.