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
- Homepage: https://finnhub.io
- API docs: https://finnhub.io/docs/api
License
See LICENSE.
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155715d27e92cfc2ae64082f8059fb0f0b58256a8934ca7ad6c0a1857a0e25a4
|
|
| MD5 |
fb629679ac0803f198e827dd1703ccc1
|
|
| BLAKE2b-256 |
fed43b48e86cd88bf5fcd6d4dca7f860f7a344b211974e32cf6d8b1c3278bf48
|
Provenance
The following attestation bundles were made for parsimony_finnhub-0.5.0.tar.gz:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_finnhub-0.5.0.tar.gz -
Subject digest:
155715d27e92cfc2ae64082f8059fb0f0b58256a8934ca7ad6c0a1857a0e25a4 - Sigstore transparency entry: 1453272478
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file parsimony_finnhub-0.5.0-py3-none-any.whl.
File metadata
- Download URL: parsimony_finnhub-0.5.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb6ef85ad8023fa2f8546352dd1bafc0f9756881dccf3983dbe2aaf67c6305ea
|
|
| MD5 |
790581fdf2203c7b53985e479e50a8dd
|
|
| BLAKE2b-256 |
b20acc5603393da9ac7ce9606912f4dd64774f96a78dc158e38e8e550f31a355
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_finnhub-0.5.0-py3-none-any.whl -
Subject digest:
cb6ef85ad8023fa2f8546352dd1bafc0f9756881dccf3983dbe2aaf67c6305ea - Sigstore transparency entry: 1453272522
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type: