finnhub-python
- API documentation: https://finnhub.io/docs/api
- API version: 1.0.0
- Package version: 1.1.1
Requirements.
Python 2.7 and 3.4+
Installation
Install package
pip install finnhub-python
Getting Started
from __future__ import print_function
import time
import finnhub
from finnhub.rest import ApiException
from pprint import pprint
# Configure API key
configuration = finnhub.Configuration(
api_key = {
'token': 'YOUR_API_KEY'
}
)
# Enter a context with an instance of the API client
with finnhub.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = finnhub.DefaultApi(api_client)
symbol = 'AAPL' # str | symbol
resolution = 'D' # str | Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange.
try:
# Aggregate Indicators
api_response = api_instance.aggregate_indicator(symbol, resolution)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->aggregate_indicator: %s\n" % e)
API Endpoints
All URIs are relative to https://finnhub.io/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | aggregate_indicator | GET /scan/technical-indicator | Aggregate Indicators |
| DefaultApi | company_basic_financials | GET /stock/metric | Basic Financials |
| DefaultApi | company_earnings | GET /stock/earnings | Earnings Surprises |
| DefaultApi | company_eps_estimates | GET /stock/eps-estimate | Earnings Estimates |
| DefaultApi | company_executive | GET /stock/executive | Company Executive |
| DefaultApi | company_news | GET /company-news | Company News |
| DefaultApi | company_peers | GET /stock/peers | Peers |
| DefaultApi | company_profile | GET /stock/profile | Company Profile |
| DefaultApi | company_profile2 | GET /stock/profile2 | Company Profile 2 |
| DefaultApi | company_revenue_estimates | GET /stock/revenue-estimate | Revenue Estimates |
| DefaultApi | country | GET /country | Country Metadata |
| DefaultApi | covid19 | GET /covid19/us | COVID-19 |
| DefaultApi | crypto_candles | GET /crypto/candle | Crypto Candles |
| DefaultApi | crypto_exchanges | GET /crypto/exchange | Crypto Exchanges |
| DefaultApi | crypto_symbols | GET /crypto/symbol | Crypto Symbol |
| DefaultApi | earnings_calendar | GET /calendar/earnings | Earnings Calendar |
| DefaultApi | economic_code | GET /economic/code | Economic Code |
| DefaultApi | economic_data | GET /economic | Economic Data |
| DefaultApi | filings | GET /stock/filings | Filings |
| DefaultApi | financials | GET /stock/financials | Financial Statements |
| DefaultApi | financials_reported | GET /stock/financials-reported | Financials As Reported |
| DefaultApi | forex_candles | GET /forex/candle | Forex Candles |
| DefaultApi | forex_exchanges | GET /forex/exchange | Forex Exchanges |
| DefaultApi | forex_rates | GET /forex/rates | Forex rates |
| DefaultApi | forex_symbols | GET /forex/symbol | Forex Symbol |
| DefaultApi | fund_ownership | GET /stock/fund-ownership | Fund Ownership |
| DefaultApi | general_news | GET /news | General News |
| DefaultApi | investors_ownership | GET /stock/investor-ownership | Investors Ownership |
| DefaultApi | ipo_calendar | GET /calendar/ipo | IPO Calendar |
| DefaultApi | major_developments | GET /major-development | Major Developments |
| DefaultApi | news_sentiment | GET /news-sentiment | News Sentiment |
| DefaultApi | pattern_recognition | GET /scan/pattern | Pattern Recognition |
| DefaultApi | price_target | GET /stock/price-target | Price Target |
| DefaultApi | quote | GET /quote | Quote |
| DefaultApi | recommendation_trends | GET /stock/recommendation | Recommendation Trends |
| DefaultApi | stock_candles | GET /stock/candle | Stock Candles |
| DefaultApi | stock_dividends | GET /stock/dividend | Dividends |
| DefaultApi | stock_splits | GET /stock/split | Splits |
| DefaultApi | stock_symbols | GET /stock/symbol | Stock Symbol |
| DefaultApi | stock_tick | GET /stock/tick | Tick Data |
| DefaultApi | support_resistance | GET /scan/support-resistance | Support/Resistance |
| DefaultApi | technical_indicator | GET /indicator | Technical Indicators |
| DefaultApi | transcripts | GET /stock/transcripts | Earnings Call Transcripts |
| DefaultApi | transcripts_list | GET /stock/transcripts/list | Earnings Call Transcripts List |
| DefaultApi | upgrade_downgrade | GET /stock/upgrade-downgrade | Stock Upgrade/Downgrade |
Models
- AggregateIndicators
- BasicFinancials
- Company
- CompanyExecutive
- CompanyNewsStatistics
- CompanyProfile
- CompanyProfile2
- Covid19
- CryptoCandles
- CryptoSymbol
- Development
- Dividends
- EarningEstimate
- EarningRelease
- EarningResult
- EarningsCalendar
- EarningsCallTranscripts
- EarningsCallTranscriptsList
- EarningsEstimates
- EconomicCalendar
- EconomicCode
- EconomicData
- EconomicEvent
- Estimate
- Filing
- FinancialStatements
- FinancialsAsReported
- ForexCandles
- ForexSymbol
- Forexrates
- FundOwnership
- IPOCalendar
- IPOEvent
- Indicator
- Investor
- InvestorsOwnership
- MajorDevelopments
- News
- NewsSentiment
- PatternRecognition
- PriceTarget
- Quote
- RecommendationTrend
- Report
- RevenueEstimates
- Sentiment
- Split
- Stock
- StockCandles
- StockTranscripts
- SupportResistance
- TechnicalAnalysis
- TechnicalIndicators
- TickData
- TranscriptContent
- TranscriptParticipant
- Trend
- UpgradeDowngrade
License
Apache License
Metadata
Release files for finnhub-python 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| finnhub-python-1.1.1.tar.gz | 71.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| finnhub_python-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 208.6 kB
Release files / finnhub-python-1.1.1.tar.gz
| Download URL | finnhub-python-1.1.1.tar.gz |
|---|---|
| Size | 71.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
713d8129971ba43071a5939796b95595ab732a56a17d11826ac38daf0bb99813
|
|
BLAKE2b-256 checksum How to use checksums |
5d2aa2f6cf30d30f849db120cda4ede23668326b417157db94ab58f1d6ce3dac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / finnhub_python-1.1.1-py3-none-any.whl
| Download URL | finnhub_python-1.1.1-py3-none-any.whl |
|---|---|
| Size | 137.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5491fb2a50be66aa420936e7c06f1abb497b68feffe9671f1cb563a3144147b
|
|
BLAKE2b-256 checksum How to use checksums |
d6bc9628f9fa80470cf10212632ab7c0a8fb9ac39aa355e5ad344f15d82fe880
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Security for finnhub-python 1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.