Registry / data / nasdaq-data-link

nasdaq-data-link

JSON →
library1.0.4pypypi✓ verified 84d ago

Official Python client for accessing Nasdaq Data Link (formerly Quandl) API. Version 1.0.4 supports Python >=3.7. Low maintenance cadence.

pip install nasdaq-data-link
INSTALL
IMPORT
SIG · NASDAQ-DATA-LINK
N
nasdaq-data-link
datapythonv1.0.4
Install
8.4s avg
Import
1625ms
Disk
168MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.676s · 168.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.4s · import 1.574s · 161MB
168MB installed
● package 168MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nasdaqdatalink
import nasdaqdatalink
import NasdaqDataLink
Case-sensitive: module name is lowercase.
nasdaqdatalink.ApiConfig
from nasdaqdatalink import ApiConfig
from nasdaqdatalink import api_config
ApiConfig class, not a lowercase variable.
nasdaqdatalink.get
from nasdaqdatalink import get
from nasdaqdatalink import get_data
Function is 'get', not 'get_data'.

Fetch stock data using the dataset code 'WIKI/AAPL'. Requires API key set as environment variable.

import nasdaqdatalink from nasdaqdatalink import ApiConfig ApiConfig.api_key = os.environ.get('NASDAQ_DATA_LINK_API_KEY', '') data = nasdaqdatalink.get('WIKI/AAPL', start_date='2020-01-01', end_date='2020-12-31') print(data.head())
Debug
Known issues
deprecatedThe 'WIKI' database is deprecated by Nasdaq Data Link. Use premium or other free datasets instead.
fix
Use a different dataset code (e.g., 'EOD/AAPL' for end-of-day data).
affects: all
gotchaAPI key must be set via ApiConfig.api_key or environment variable NASDAQ_DATA_LINK_API_KEY. Passing as parameter is not supported.
fix
Set ApiConfig.api_key = 'your_key' at the start of your script.
affects: >=1.0.0
gotchaThe package is not compatible with Python 2 and requires Python >=3.7.
fix
Ensure you are using Python 3.7 or higher.
affects: >=1.0.0
Errors
Common errors & fixes
ImportError: cannot import name 'ApiConfig' from 'nasdaqdatalink'
Incorrect casing or wrong module name in import statement.
fix
Use: from nasdaqdatalink import ApiConfig
AttributeError: module 'nasdaqdatalink' has no attribute 'get_data'
Using the old function name from Quandl package.
fix
Use: nasdaqdatalink.get()
AuthenticationError: You need to provide an API key.
API key not set before making a request.
fix
Set ApiConfig.api_key = 'your_key' or export environment variable NASDAQ_DATA_LINK_API_KEY.
Upgrade
Version history
1.0.4latest on PyPI · released Aug 29, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
nasdaq-data-link — pip install nasdaq-data-link · libregistry