Skip to main content

Market Data CLI - stocks, forex, crypto, commodities & more from your terminal

Project description

marketdata-cli

CLI wrapper for Alpha Vantage APIs — access 100+ endpoints for stocks, forex, crypto, commodities, economic indicators, and technical analysis directly from your terminal.

Install

# pip
pip install marketdata-cli

# uv
uv tool install marketdata-cli

# or run directly without installing
uvx marketdata-cli --help

Setup

Get a free API key at https://www.alphavantage.co/support/#api-key, then either:

# Option 1: environment variable (recommended)
export ALPHAVANTAGE_API_KEY=your_key

# Option 2: .env file in your working directory
echo "ALPHAVANTAGE_API_KEY=your_key" > .env

# Option 3: pass inline with -k
marketdata-cli global_quote AAPL -k your_key

Usage

# Get latest quote
marketdata-cli global_quote AAPL

# Daily OHLCV data
marketdata-cli time_series_daily MSFT

# Intraday prices (1min, 5min, 15min, 30min, 60min)
marketdata-cli time_series_intraday TSLA --interval 5min

# Search for a ticker symbol
marketdata-cli symbol_search "berkshire"

Fundamental Data

marketdata-cli company_overview AAPL
marketdata-cli income_statement AAPL
marketdata-cli balance_sheet AAPL
marketdata-cli cash_flow AAPL
marketdata-cli earnings AAPL

Technical Indicators

marketdata-cli sma AAPL --interval daily --time_period 50 --series_type close
marketdata-cli rsi AAPL --interval daily --time_period 14 --series_type close
marketdata-cli macd AAPL --interval daily --series_type close
marketdata-cli bbands AAPL --interval daily --time_period 20 --series_type close

Forex & Crypto

marketdata-cli currency_exchange_rate --from_currency USD --to_currency JPY
marketdata-cli fx_daily --from_symbol EUR --to_symbol USD
marketdata-cli digital_currency_daily SYMBOL=BTC --market USD
marketdata-cli crypto_intraday SYMBOL=ETH --market USD --interval 5min

Commodities & Economic Indicators

marketdata-cli wti
marketdata-cli natural_gas
marketdata-cli gold_silver_spot
marketdata-cli real_gdp
marketdata-cli inflation
marketdata-cli cpi
marketdata-cli federal_funds_rate
marketdata-cli unemployment

News & Market Info

marketdata-cli news_sentiment --tickers AAPL
marketdata-cli top_gainers_losers
marketdata-cli market_status
marketdata-cli earnings_calendar
marketdata-cli ipo_calendar

Options

marketdata-cli realtime_options AAPL
marketdata-cli historical_options AAPL

All Commands

Run marketdata-cli --help to see all available commands, or marketdata-cli <command> --help for details on a specific command.

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

marketdata_cli-0.1.9.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marketdata_cli-0.1.9-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file marketdata_cli-0.1.9.tar.gz.

File metadata

  • Download URL: marketdata_cli-0.1.9.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for marketdata_cli-0.1.9.tar.gz
Algorithm Hash digest
SHA256 dfbe566b298d7f255c75fba5c1e155d0ffc55a5a861986ddb0648f67cd5dd60d
MD5 be0997b4a2f34a0ecbbe2c52c9ea5fcd
BLAKE2b-256 88719c2fca3aef46d6e10e9bcde4d1b31bd8749fedad22c26d5f9df9cad8d706

See more details on using hashes here.

File details

Details for the file marketdata_cli-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: marketdata_cli-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for marketdata_cli-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4f580d92ccdd106f2f8162d95fec354dc8c8fd179595d5533bae16386a67d032
MD5 d65d0b6c81be6491ec92787028a25a72
BLAKE2b-256 93518fc8d8476ac20ab86c79468cda6fa5a2778f99b4231987be060ef177b8f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page