Skip to main content

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.

Metadata

Release files for nfin-sdk 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nfin-sdk 0.1.1
File Size Uploaded Provenance Actions
nfin_sdk-0.1.1.tar.gz 9.7 kB With provenance Details for nfin_sdk-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nfin-sdk 0.1.1
File Interpreter ABI Platform Actions
nfin_sdk-0.1.1-py3-none-any.whl Python 3 none any Details for nfin_sdk-0.1.1-py3-none-any.whl

Total release size: 18.7 kB

Release files / nfin_sdk-0.1.1.tar.gz

Download URL nfin_sdk-0.1.1.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96b22f97697443dfdecc8be5ed5348201ba12e3e64982c927ff21b7e0ad407ce
BLAKE2b-256 checksum
How to use checksums
f9efcfb24a6fce38b0b2451310ca59bd7991dce66efaf90a31b9636fc31487cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

Release files / nfin_sdk-0.1.1-py3-none-any.whl

Download URL nfin_sdk-0.1.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fa8eb6b6ccddb66fa56ee49e31337e547d341e803b1dbad2752f9608906a083
BLAKE2b-256 checksum
How to use checksums
c40adf9cc75f2805557356a406751c6e7a85babf457da447109648771c3ef4f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

Security for nfin-sdk 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nfin_sdk-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page