Skip to main content

alpha vantage api wrapper

Project description

alphav

alpha vantage api wrapper

Description

using a symbol object that pulls the data once the property is accessed.

The data is then saved for the next property calls.

Example

from alphav import Symbol
import os

# generate symbol
apikey = os.environ.get('API_KEY')
s = Symbol('IBM', apikey)

# print the data it provides
print(s.balance_sheet)
print(s.earnings)
print(s.income_statement)
print(s.cash_flow)
print(s.overview)
print(s.global_quote)
print(s.time_series_daily)
print(s.time_series_monthly)
print(s.time_series_monthly_adjusted)
print(s.time_series_weekly)
print(s.time_series_weekly_adjusted)

The properties are of data object, supporting

# for balance sheet data
prop.main # the main data slice, annual by default
prop.annual # annual data when provieded
prop.quarterly # quarterly data when provided
prop.set_main('quarterly')
prop.main # will be prop.annual

# for the rest of the data
prop.main # only

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

alphav-1.0.5.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file alphav-1.0.5.tar.gz.

File metadata

  • Download URL: alphav-1.0.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.2

File hashes

Hashes for alphav-1.0.5.tar.gz
Algorithm Hash digest
SHA256 34ead2dea259e91639607aadaec0f9d6de6b03abf67a334121c6394bc5f31df1
MD5 e7faa52336934f296ad86284062112cf
BLAKE2b-256 5ac1a58b838ea7ec4c4b6fdf6729655eb6fa6249e61747fe8269fe5663721f6f

See more details on using hashes here.

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