Skip to main content

Python wrapper for Feather's API

Project description

Calculations

Several endpoints, including ratios and multiples, include values derived from figures reported in the financial statements. To calculate these values, we use the following formulas.

EBIT = EBITDA = EBIT + Depreciation and Amortization

Getting Started

To use the API, you'll need an API key. You can get one by emailing founders@try-feather.com

If you're using the Python client, you can set your API key as an environment variable FEATHER_API_KEY, or pass in the api key as a parameter to the client, as follows:

from featherapi import DataClient

API_KEY = 'xxyourfeatherapikeyherexx'

client = DataClient(api_key=API_KEY)

If calling the HTTP endpoints yourself, you need to include your api key as an x-api-key header. See the HTTP API documentation for more details.

Financials

To get all available facts for an equity:

client.get_equity_facts('AAPL')

Additionally, equity facts can be fetched by range for available reporting periods:

# get the available reporting periods for AAPL
available = client.get_available('AAPL')

# get the latest 5 years of facts
end = available[-1]
start = available[-5]

results = client.get_equity_facts('AAPL', start=start, end=end)

TO get the institutional ownership for an equity:

holders = client.get_institutional_holders('AAPL')

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

feather-api-1.0.0rc1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

feather_api-1.0.0rc1-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

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