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.
Metadata
Release files for marketdata-cli 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| marketdata_cli-0.1.9.tar.gz | 4.1 kB | Without provenance | Details for marketdata_cli-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marketdata_cli-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for marketdata_cli-0.1.9-py3-none-any.whl |
Total release size: 8.9 kB
Release files / marketdata_cli-0.1.9.tar.gz
| Download URL | marketdata_cli-0.1.9.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfbe566b298d7f255c75fba5c1e155d0ffc55a5a861986ddb0648f67cd5dd60d
|
|
BLAKE2b-256 checksum How to use checksums |
88719c2fca3aef46d6e10e9bcde4d1b31bd8749fedad22c26d5f9df9cad8d706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / marketdata_cli-0.1.9-py3-none-any.whl
| Download URL | marketdata_cli-0.1.9-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f580d92ccdd106f2f8162d95fec354dc8c8fd179595d5533bae16386a67d032
|
|
BLAKE2b-256 checksum How to use checksums |
93518fc8d8476ac20ab86c79468cda6fa5a2778f99b4231987be060ef177b8f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for marketdata-cli 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.