Skip to main content

A simple wrapper for the Alpha Vantage API.

Project description

Introduction

This is a simple wrapper for the Alpha Vantage API. Since quandl disabled the free WIKI data source, I created this package that uses Alpha instead.

All results are converted to a pandas's DataFrame to make data manipulation/computation/etc. faster.

Disclaimer

  1. I am not part of Alpha Vantage or have any relationship with the company.
  2. Forgive me if I do not employ the best practices (code, comments, documentation), I have no prior experience in publishing a pip module or software development in a professional level.

Install

You can install this package globally with:

pip install alphavantage_wrapper pandas

Or if you do not want to install globally, but on a per project basis for example, you can clone this repo (you will still need pandas package):

cd my-awesome-project
git clone http://github.com/regisin/alphavantage-wrapper

Tested using Python 3.

Usage

from alphavantage_wrapper.AlphaVantage import AlphaVantage

api_key = 'APIKeyGoesHere'

av = AlphaVantage(api_key)

# The company's stock symbol (ex.: Microsoft)
ticker = 'MSFT'
# Retrieval the 100 most recent financial data (daily time series, adjusted)
stock = av.get_time_series_daily_adjusted(ticker)
# do stuff with data
print(stock)

Changelog

  • v0.0.4

    • Added tests for time series API
  • v0.0.3

    • Bug fixes
  • v0.0.2

    • Bug fixes
  • v0.0.1

TO-DO

  • For v0.1.0
  • <input type="checkbox" disabled="" /> Improve source-code comments (function descriptions, add example)
  • <input type="checkbox" disabled="" /> Time series example script
  • <input type="checkbox" disabled="" /> Implement Forex functions
  • <input type="checkbox" disabled="" /> Implement Cryptocurrencies functions
  • <input type="checkbox" disabled="" /> Implement Technical Indicators functions
  • <input type="checkbox" disabled="" /> Implement Sector Performances functions
  • <input type="checkbox" checked="" disabled="" /> Add unit tests
  • <input type="checkbox" disabled="" /> Add CSV support, maybe?
  • For v0.0.1
  • <input type="checkbox" checked="" disabled="" /> Create package structure
  • <input type="checkbox" checked="" disabled="" /> Write readme
  • <input type="checkbox" checked="" disabled="" /> Implement time series API functions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for alphavantage-wrapper, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size alphavantage_wrapper-0.0.4-py3-none-any.whl (6.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size alphavantage-wrapper-0.0.4.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page