Lightweight Python SDK for nfin: hosted Nasdaq quotes, prices, options, IPOs, calendars, market movers, news, and Nordic data.
Project description
nfin
Lightweight Python SDK for nfin, a hosted Nasdaq data API for builders.
nfin gives you access to Nasdaq market data without maintaining your own exchange-site integration: symbol search, quotes, historical prices, options, IPO calendars, market movers, event calendars, ownership, funds, news, screeners, sentiment, and Nasdaq Nordic data through product-native namespaces. Use it for dashboards, agents, notebooks, research tools, watchlists, prototyping, and app backends.
This SDK is intentionally straightforward: plain dict responses, typed
errors, automatic retries, and a symbol-scoped ticker workbench.
Docs: https://docs.nfin.dev/python-sdk
pip install nfin-sdk
Quick Use
import nfin
client = nfin.Client()
apple = client.ticker("AAPL")
quote = apple.quote(asset_class="stocks")
history = apple.history(from_date="2026-01-01", to_date="2026-05-01")
ipos = client.ipos.calendar()
print(quote["data"], history["data"], ipos["data"])
Common Calls
client.symbols.search("apple")
client.quotes.get("AAPL", asset_class="stocks")
client.quotes.batch(["AAPL", "MSFT"])
client.prices.history("AAPL", from_date="2026-01-01", to_date="2026-05-01")
client.options.chain("AAPL")
client.events.earnings()
client.ipos.calendar()
client.market.movers()
client.news.press_center()
client.screeners.run("stocks")
client.nordic.search("ericsson")
The client is organized around nfin product areas: symbols, quotes,
prices, options, events, ipos, market, ownership, funds, news,
screeners, sentiment, nordic, and management. Use
client.ticker("AAPL") for symbol-scoped quote, history, chart, options,
dividend, EPS, extended-trading, realtime-trade, and short-interest calls.
Runtime Support
Configuration can come from constructor options or environment variables:
| Option | Environment | Purpose |
|---|---|---|
base_url |
NFIN_BASE_URL |
Override https://api.nfin.dev; must be http or https |
contact |
NFIN_CONTACT |
Send optional support metadata |
api_key |
NFIN_API_KEY |
Send email-verified API credentials |
management_token |
NFIN_MANAGEMENT_TOKEN |
Manage API keys after email verification |
api_key is sent as Authorization: Bearer <key> by default. Pass
api_key_header="x-nfin-key" to use X-Nfin-Key instead.
The SDK retries transient 429, 502, 503, and 504 responses by default.
Use max_retries, retry_statuses, backoff_factor, max_backoff, and
backoff_jitter when you need tighter control, or set max_retries=0.
Keep API keys on a server when you do not control the runtime.
Errors
HTTP errors raise NfinError. HTTP 429 raises NfinRateLimitError; HTTP 503
raises NfinServiceBusyError after retry exhaustion. Error objects include
retry_after, status, and request IDs when provided.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nfin_sdk-0.1.1.tar.gz.
File metadata
- Download URL: nfin_sdk-0.1.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96b22f97697443dfdecc8be5ed5348201ba12e3e64982c927ff21b7e0ad407ce
|
|
| MD5 |
209552717e68a24353b2df775f5bf23d
|
|
| BLAKE2b-256 |
f9efcfb24a6fce38b0b2451310ca59bd7991dce66efaf90a31b9636fc31487cb
|
Provenance
The following attestation bundles were made for nfin_sdk-0.1.1.tar.gz:
Publisher:
publish-nfin-python.yml on bluefin-ai/fin-services
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nfin_sdk-0.1.1.tar.gz -
Subject digest:
96b22f97697443dfdecc8be5ed5348201ba12e3e64982c927ff21b7e0ad407ce - Sigstore transparency entry: 1661033185
- Sigstore integration time:
-
Permalink:
bluefin-ai/fin-services@ce541d1902ae5a25fc2e8e32288dbb0f9553cbc6 -
Branch / Tag:
refs/tags/nfin-python-v0.1.1 - Owner: https://github.com/bluefin-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-nfin-python.yml@ce541d1902ae5a25fc2e8e32288dbb0f9553cbc6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nfin_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nfin_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fa8eb6b6ccddb66fa56ee49e31337e547d341e803b1dbad2752f9608906a083
|
|
| MD5 |
2c9d1dc50d67aab9f5fcb3f492b07bc8
|
|
| BLAKE2b-256 |
c40adf9cc75f2805557356a406751c6e7a85babf457da447109648771c3ef4f8
|
Provenance
The following attestation bundles were made for nfin_sdk-0.1.1-py3-none-any.whl:
Publisher:
publish-nfin-python.yml on bluefin-ai/fin-services
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nfin_sdk-0.1.1-py3-none-any.whl -
Subject digest:
8fa8eb6b6ccddb66fa56ee49e31337e547d341e803b1dbad2752f9608906a083 - Sigstore transparency entry: 1661033336
- Sigstore integration time:
-
Permalink:
bluefin-ai/fin-services@ce541d1902ae5a25fc2e8e32288dbb0f9553cbc6 -
Branch / Tag:
refs/tags/nfin-python-v0.1.1 - Owner: https://github.com/bluefin-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-nfin-python.yml@ce541d1902ae5a25fc2e8e32288dbb0f9553cbc6 -
Trigger Event:
push
-
Statement type: