The Nasdaq Data Link connector lets your AI agent act in each user's Nasdaq Data Link account. Each user connects their own Nasdaq Data Link API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 6 tools.
- Tools
- 6
- What they doRead · write · destructive
- 6 · 0 · 06 read0 write0 destructive
- Users sign in with
- API key
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Nasdaq Data Link connection
In AgentKit > Connections, create a Nasdaq Data Link connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'nasdaqdatalink'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Nasdaq Data Link:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'nasdaqdatalink_search_datasets',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "nasdaqdatalink"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Nasdaq Data Link:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="nasdaqdatalink_search_datasets",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their Nasdaq Data Link credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolnasdaqdatalink_get_databaseGet the metadata of a Nasdaq Data Link time-series database by its code.Read-onlyGet Database
Get the metadata of a Nasdaq Data Link time-series database by its code. Returns database.id, name, database_code, description, datasets_count, downloads, premium and url_name. Use nasdaqdatalink_get_database to see what a database such as FRED holds and whether it is premium. Use nasdaqdatalink_search_datasets with database_code to list its datasets.
Inputs
database_codestringrequired- Time-series database code, such as FRED. It is the part before the slash in a dataset code like FRED/GDP.
nasdaqdatalink_get_table_metadataGet the metadata of a Nasdaq Data Link data table: its name, description, columns, filterable columns and primary key.Read-onlyGet Table Metadata
Get the metadata of a Nasdaq Data Link data table: its name, description, columns, filterable columns and primary key. Returns datatable.vendor_code, datatable_code, name, description, columns (name and type), filters (the column names nasdaqdatalink_query_table can filter on) and primary_key. Use nasdaqdatalink_get_table_metadata before nasdaqdatalink_query_table to choose filters and columns. Use nasdaqdatalink_get_time_series_metadata for a time-series dataset.
Inputs
table_codestringrequired- Table code within the publisher: the part after the slash in a table code such as ZACKS/FC. Example: FC.
vendor_codestringrequired- Publisher (vendor) code of the data table: the part before the slash in a table code such as ZACKS/FC. Uppercase letters, digits and underscores. Example: ZACKS.
nasdaqdatalink_get_time_series_dataGet the observations of a Nasdaq Data Link time-series dataset (Time-series API), with optional date range, row limit, single-column selection, frequency collapse and transformation.Read-onlyGet Time Series Data
Get the observations of a Nasdaq Data Link time-series dataset (Time-series API), with optional date range, row limit, single-column selection, frequency collapse and transformation. Returns dataset_data.column_names (the first is the date), dataset_data.data (one array per date), plus frequency, start_date, end_date and the options applied. Premium databases need a subscription. Use nasdaqdatalink_get_time_series_data for a dataset code such as FRED/GDP. Use nasdaqdatalink_query_table for a data table such as ZACKS/FC. Use nasdaqdatalink_search_datasets to find a dataset code.
Inputs
database_codestringrequired- Time-series database code: the part before the slash in a dataset code such as FRED/GDP. Uppercase letters, digits and underscores. Example: FRED.
dataset_codestringrequired- Dataset code within the database: the part after the slash in a dataset code such as FRED/GDP. Example: GDP.
collapsestring- Lower the data frequency. Each period keeps its last observation, so sums or averages are not computed. Values: none, daily, weekly, monthly, quarterly, annual. Only downsampling works; a frequency higher than the dataset's is not created.one of
nonedailyweeklymonthlyquarterlyannual column_indexinteger- Return only one data column, by position. Column 0 is the date and is always returned; data columns start at 1. Example: 4 returns the date and the fourth data column.
end_datestring- Latest date to return, inclusive, as yyyy-mm-dd. Example: 2020-12-31.
limitinteger- Return only the first n rows after ordering. With the default newest-first order, limit 1 returns the latest observation. Example: 10.
orderstring- Row order by date: desc (newest first, the API default) or asc (oldest first).one of
ascdesc start_datestring- Earliest date to return, inclusive, as yyyy-mm-dd. Example: 2015-01-01.
transformstring- Calculation applied before the data is returned: none, diff (change from the previous row), rdiff (percentage change from the previous row, as a fraction), rdiff_from (change from each row to the latest value, as a fraction), cumul (cumulative sum) or normalize (rebased so the first row is 100).one of
nonediffrdiffrdiff_fromcumulnormalize
nasdaqdatalink_get_time_series_metadataGet the metadata of a Nasdaq Data Link time-series dataset, without its observations.Read-onlyGet Time Series Metadata
Get the metadata of a Nasdaq Data Link time-series dataset, without its observations. Returns dataset.id, dataset_code, database_code, name, description, column_names, frequency, type, premium, refreshed_at, and the oldest and newest available dates. Use nasdaqdatalink_get_time_series_metadata to check a dataset's columns, frequency and date coverage before nasdaqdatalink_get_time_series_data. Use nasdaqdatalink_get_table_metadata for a data table.
Inputs
database_codestringrequired- Time-series database code: the part before the slash in a dataset code such as FRED/GDP. Uppercase letters, digits and underscores. Example: FRED.
dataset_codestringrequired- Dataset code within the database: the part after the slash in a dataset code such as FRED/GDP. Example: GDP.
nasdaqdatalink_query_tableQuery rows from a Nasdaq Data Link data table (Tables API), with row filters on the table's filterable columns, column selection and cursor paging.Read-onlyQuery Table
Query rows from a Nasdaq Data Link data table (Tables API), with row filters on the table's filterable columns, column selection and cursor paging. Returns datatable.columns (name and type of each returned column), datatable.data (one array per row, in column order) and meta.next_cursor_id, which is null on the last page. Free tables work with any key; premium tables need a subscription. Use nasdaqdatalink_query_table to pull table rows such as fundamentals or prices. Use nasdaqdatalink_get_table_metadata first to learn which columns can be filtered. Use nasdaqdatalink_get_time_series_data for a dataset code such as FRED/GDP.
Inputs
table_codestringrequired- Table code within the publisher: the part after the slash in a table code such as ZACKS/FC. Example: FC.
vendor_codestringrequired- Publisher (vendor) code of the data table: the part before the slash in a table code such as ZACKS/FC. Uppercase letters, digits and underscores. Example: ZACKS.
columnsarray- Columns to return, by column name. Omit for every column. Example: ["ticker", "per_end_date", "tot_revnu"].
cursor_idstring- Cursor for the next page: the meta.next_cursor_id value from the previous call with the same filters and columns. Omit for the first page.
filtersobject- Row filters as an object keyed by column name. Only columns listed in the table's metadata filters can be used. A string or a list matches any of the values; an object of operators (gt, gte, lt, lte) sets a range. Example: {"ticker": ["AAPL", "MSFT"], "per_end_date": {"gte": "2020-01-01", "lte": "2023-12-31"}}. Large tables may refuse a call without filters.
per_pageinteger- Number of rows per page, from 1 to 10000. The API's own default page size applies when omitted. Example: 100.
nasdaqdatalink_search_datasetsSearch Nasdaq Data Link time-series datasets by keyword, optionally within one database.Read-onlySearch Datasets
Search Nasdaq Data Link time-series datasets by keyword, optionally within one database. Returns datasets with id, dataset_code, database_code, name, description, column_names, frequency, premium and available date range, and meta with current_page, total_pages and total_count. Use nasdaqdatalink_search_datasets to find a dataset code for nasdaqdatalink_get_time_series_data. Use nasdaqdatalink_get_time_series_metadata when the code is already known.
Inputs
database_codestring- Restrict results to one time-series database, by code. Example: FRED.
pageinteger- Page number to return, starting at 1. Use meta.next_page from the previous response. Example: 2.
per_pageinteger- Number of results per page. Example: 20.
querystring- Search words matched against dataset names and descriptions. Separate words with spaces. Example: crude oil price.
No tools match.