Skip to main content

Vhinny Financial Data API

Project description

Vhinny - Financial Data API

Public API to access Vhinny's Financial Data. For more information, please visit us at https://www.vhinny.com/about

Installation

Make sure you have Python 3.6+ on your system, then run pip install vhinny

Documentation

Start by importing the package

# Importing Vhinny always is a good place to start
from vhinny import Vhinny

Initiate your instance

vhi = Vhinny()

Looking for a Balance Sheet? Try this:

data = vhi.balance_sheet(ticker='AAPL', year=2012)

This will return a dictionary similar to the one below. Note, if we don't have data for a combination of (ticker, year) you've specified, this call will return None

# Sample response:
{
    'accounts_payable_items': 2012000000.0, 
    'accounts_receivable': 7885000000.0, 
    'assets': 93798000000.0, 
    'cash_and_equivalents': 14778000000.0, 
    'current_assets': 60454000000.0, 
    'filing_date': '2013-01-29', 
    'goodwill': 10537000000.0, 
    'intangible_assets': 7473000000.0, 
    'inventory': 505000000.0, 
    'liabilities': 22083000000.0, 
    'liabilities_current': 14337000000.0, 
    'liabilities_non_current': 7746000000.0, 
    'long_term_debt_current': 0.0, 
    'long_term_debt_non_current': 2988000000.0, 
    'non_current_assets': 33344000000.0, 
    'property_plant_and_equipment': 11854000000.0, 
    'reported_as_of': '2012-12-31', 
    'retained_earnings': 48342000000.0, 
    'stockholders_equity': 71715000000.0, 
    'treasury_stock_value': None
}

You can also request Income Statement, and the Statement of Cash Flows like so:

vhi.income_statement(ticker='AAPL', year=2012)
vhi.cash_flows(ticker='AAPL', year=2012)

Happy coding!

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

vhinny-0.0.10.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

vhinny-0.0.10-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file vhinny-0.0.10.tar.gz.

File metadata

  • Download URL: vhinny-0.0.10.tar.gz
  • Upload date:
  • Size: 3.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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0

File hashes

Hashes for vhinny-0.0.10.tar.gz
Algorithm Hash digest
SHA256 f349777140048c0434179bca7f4984591f0cda3f8640a668f084a73f25c0dcea
MD5 03cd14a9a5dbea5b4e0b164ddf30b5bb
BLAKE2b-256 bc012b5027a776c8f7471a19b1a6895c806823df3381d51674da7c971dd01b80

See more details on using hashes here.

File details

Details for the file vhinny-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: vhinny-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0

File hashes

Hashes for vhinny-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e81c1011d3b4a3679c18a3f96fac29d92c844f759ee210bd96eda8b77833cf9c
MD5 d0704ecf111790d4127bd11aa5196d62
BLAKE2b-256 08903e2b5fd8f4cb19721f634aabf5d227451bda1005c7e9c9a62bd55b33fc78

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