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.4.0.tar.gz (14.6 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.4.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsimony_finnhub-0.4.0.tar.gz
  • Upload date:
  • Size: 14.6 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.4.0.tar.gz
Algorithm Hash digest
SHA256 d73a4fc3fa3428d1b8ce25e85fe8bac6f36f4572feb5228bf6b77b6aee5068b1
MD5 1bc67f18730c54be95d41acb81966f92
BLAKE2b-256 ea4aa7cf5f3c658394b687e85a9c8cae1d5008c63cf7d39ef8581fcab0a39fac

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_finnhub-0.4.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.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for parsimony_finnhub-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9378de6c45fcf50dad445c48cd0d760356230efa14e6e12625b1a07791bc8c6
MD5 d200aa4642bc8f401005996c358e27cf
BLAKE2b-256 9f33f34fd8cae0bb2ec12ff9eb4a04d113caba48474c1734e35be78ccec2ccb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsimony_finnhub-0.4.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