Skip to main content

Alpha Vantage Python package.

Project description

Alpha Vantage Python

alpha_vantage is a simple Python wrapper around the Alpha Vantage API:

from alpha_vantage import Client
from alpha_vantage.functions import TimeSeries

# setup API client and TimeSeries interface for retrieving IBM stock data
client = Client("API_TOKEN")
ts = TimeSeries(client=client, symbol="IBM")

# retrieve historic stock data on a daily level
daily = ts.daily()

# loop over results
for day in daily.timeseries:
    print(f"- {day.timestamp}: {day.high}")

# close client
client.close()

Installation

alpha_vantage is available on PyPi:

$ python -m pip install alpha-vantage-py

Features

  • Easy integration with your Python project
  • Alpha Vantage endpoints wrapped in functions

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

alpha-vantage-py-0.0.5.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

alpha_vantage_py-0.0.5-py3-none-any.whl (11.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