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 install marketdata-cli

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.8.tar.gz (3.9 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.8-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: marketdata_cli-0.1.8.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for marketdata_cli-0.1.8.tar.gz
Algorithm Hash digest
SHA256 8fd8b2d57bcf78dbab5391b7f5209d34faa45204526a5168ad715c98d5d3a8f4
MD5 a2a5b4fd78f1da461b6659d4ce73ec53
BLAKE2b-256 16b971428ba84d87b5b41535f6ead23de36e5994d255cc7dd00a1c9a51edebf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for marketdata_cli-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3b15f3ca3ff09f15ad9a5100e70896ecd845e14fe5da4fe6ffc3138aeff39356
MD5 302e0e195d04b92206be46061b9cf244
BLAKE2b-256 8ce01e39d84edf69ef7ff8a4c36967087d81c89c9e3a9f5b206e656472326d9c

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