Skip to main content

No project description provided

Project description

Command line interface for Alpha Vantage APIs (WIP)

Command line interface to get stock data from the Alpha Vantage API

Alpha Vantage offers an API for financial data and other popular finance indicators. This library provides a series of commands that you can use to query the API from your terminal in an easy way.

Getting started

Get an alpha vantage free api key. Visit http://www.alphavantage.co/support/#api-key

Install alpha-vantage-cli:

pip install alpha-vantage-cli

Set your api key:

av set-key

Try it out:

av stock quote ibm

Usage examples

av --help

Output:

Usage: av [OPTIONS] COMMAND [ARGS]...

  Unofficial Alpha Vantage command line interaface.

  Get stocks data from the command line.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  crypto   Manages the Cryptocurrences APIs (Not yet implemented)
  data     Manages the Fundamental Data APIs (Not yet implemented)
  econ     Manages the Economic Indicators APIs (Not yet implemented)
  forex    Manages the Forex APIs (Not yet implemented)
  intel    Manages the Alpha Intelligence APIs (Not yet implemented)
  set-key  Set your API key so that you can send requests to Alpha...
  stock    Manages the Core Stocks APIs
  tech     Manages the Technical Indicators APIs (Not yet implemented)

Get quote for stock

av stock quote aapl

Sample output:

{'Global Quote': {'01. symbol': 'AAPL', '02. open': '151.2100', '03. high': '151.3500', '04. low': '148.3700', '05. price': '150.7000', '06. volume': '162278841', '07. latest trading day': '2022-09-16', '08. previous close': '152.3700', '09. change': '-1.6700', '10. change percent': '-1.0960%'}}

Download monthly data as CSV

av stock monthly ibm --datatype=csv > ibm.csv

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-cli-0.1.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

alpha_vantage_cli-0.1.2-py3-none-any.whl (6.3 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