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
  • [ ] Improve source-code comments (function descriptions, add example)
  • [ ] Time series example script
  • [ ] Implement Forex functions
  • [ ] Implement Cryptocurrencies functions
  • [ ] Implement Technical Indicators functions
  • [ ] Implement Sector Performances functions
  • [x] Add unit tests
  • [ ] Add CSV support, maybe?
  • For v0.0.1
  • [x] Create package structure
  • [x] Write readme
  • [x] 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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page