Finnhub API
Project description
finnhub-python
- API documentation: https://finnhub.io/docs/api
- API version: 1.0.0
- Package version: 1.1.3
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 |
Documentation For Models
- AggregateIndicators
- BasicFinancials
- Company
- CompanyExecutive
- CompanyNewsStatistics
- CompanyProfile
- CompanyProfile2
- CountryMetadata
- CovidInfo
- 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
- TickData
- TranscriptContent
- TranscriptParticipant
- Trend
- UpgradeDowngrade
License
Apache 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
finnhub-python-1.1.3.tar.gz
(71.6 kB
view details)
Built Distribution
File details
Details for the file finnhub-python-1.1.3.tar.gz
.
File metadata
- Download URL: finnhub-python-1.1.3.tar.gz
- Upload date:
- Size: 71.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc7e2089022244ae77ebc63acdf16d5cbcdb3139f9b9a035d0af2a6c3c06b8f5 |
|
MD5 | 729f0234fc7a0db1cd5fa6ede551518e |
|
BLAKE2b-256 | a89641b3c518bba9a4f4ec72873129afb12c114c61a8071d8255643f0232e74d |
File details
Details for the file finnhub_python-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: finnhub_python-1.1.3-py3-none-any.whl
- Upload date:
- Size: 140.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec4070764372f32c9b75217b2a9083e0482bd8b30953e73fc7f2bc1de67237f |
|
MD5 | a86b0e13a503992434e71a075dbed66c |
|
BLAKE2b-256 | 895e81f61ddf3df67f6d7565e03496e1de69836fe6f29d83cb385e987842f34d |