Skip to main content

Finnhub connector for the parsimony framework

Project description

parsimony-finnhub

Finnhub source for parsimony: equity quotes, company fundamentals, news, and calendars.

Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-finnhub.

Connectors

Group Connectors
Discovery finnhub_search
Market data finnhub_quote
Company finnhub_profile, finnhub_peers, finnhub_recommendation, finnhub_earnings, finnhub_basic_financials
News finnhub_company_news, finnhub_market_news
Calendars finnhub_earnings_calendar, finnhub_ipo_calendar
Enumerator enumerate_finnhub (full US symbol list)

12 connectors total. Free tier covers all of the above; some adjacent endpoints (/stock/candle, /forex/rates, /stock/splits, /stock/dividend, /stock/price-target) require a paid Finnhub plan and are not exposed here.

Install

pip install parsimony-finnhub

Pulls in parsimony-core>=0.4,<0.5 automatically. Verify discovery:

python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"

Configuration

export FINNHUB_API_KEY="<your-key>"

Get a key at https://finnhub.io. Free tier: 60 calls/min.

Quick start

import asyncio
from parsimony_finnhub import CONNECTORS

async def main():
    connectors = CONNECTORS.bind_env()
    result = await connectors["finnhub_quote"](symbol="AAPL")
    print(result.data.head())

asyncio.run(main())

For multi-plugin composition:

from parsimony import discover
connectors = discover.load_all().bind_env()

Provider

License

See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsimony_finnhub-0.5.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsimony_finnhub-0.5.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file parsimony_finnhub-0.5.0.tar.gz.

File metadata

  • Download URL: parsimony_finnhub-0.5.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsimony_finnhub-0.5.0.tar.gz
Algorithm Hash digest
SHA256 155715d27e92cfc2ae64082f8059fb0f0b58256a8934ca7ad6c0a1857a0e25a4
MD5 fb629679ac0803f198e827dd1703ccc1
BLAKE2b-256 fed43b48e86cd88bf5fcd6d4dca7f860f7a344b211974e32cf6d8b1c3278bf48

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_finnhub-0.5.0.tar.gz:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file parsimony_finnhub-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for parsimony_finnhub-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb6ef85ad8023fa2f8546352dd1bafc0f9756881dccf3983dbe2aaf67c6305ea
MD5 790581fdf2203c7b53985e479e50a8dd
BLAKE2b-256 b20acc5603393da9ac7ce9606912f4dd64774f96a78dc158e38e8e550f31a355

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_finnhub-0.5.0-py3-none-any.whl:

Publisher: release.yml on ockham-sh/parsimony-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page