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.

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.0rc2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

feather_api-1.0.0rc2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file feather-api-1.0.0rc2.tar.gz.

File metadata

  • Download URL: feather-api-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.1

File hashes

Hashes for feather-api-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 0dee65017ca8ea010043e874ed68e0260338448a56525b1a7fdf263b16ae3525
MD5 f97f02a56cdcc2da69fe7d5ea37ae056
BLAKE2b-256 48a4cb06d39b3bc0cabb0f3baeea7a69097cfbe58fede5e8494390fd9480f323

See more details on using hashes here.

File details

Details for the file feather_api-1.0.0rc2-py3-none-any.whl.

File metadata

  • Download URL: feather_api-1.0.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.1

File hashes

Hashes for feather_api-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 f944fc660ddbe6c64e06998690a60392f1be8f2e62057a0faf446e93c9944810
MD5 e1d73713baeb48aaf1b53d6c1e129224
BLAKE2b-256 29f2209115f3c0351f4b1aa0db6a101ee01e087bc6345296a5f42f19a089b0aa

See more details on using hashes here.

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