← 返回
未分类 Key 中文

Stockmarket

Access real-time and historical stock market data via Alpha Vantage API. Get quotes, time series, technical indicators, fundamentals, forex, crypto, and comm...
通过 Alpha Vantage API 访问实时和历史股市数据,获取报价、时序、技术指标、基本面、外汇、加密货币及大宗商品等
raychanpmp raychanpmp 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 340
下载
💾 0
安装
1
版本
#latest

概述

Stock Market Data

Access real-time and historical stock market data via the Alpha Vantage API. Covers stocks, forex, crypto, commodities, economic indicators, and technical analysis.

API: https://www.alphavantage.co

Free tier: 25 requests/day (no key needed for demo)

Setup

# Set your API key (get free at alphavantage.co/support/#api-key)
export ALPHA_VANTAGE_KEY="your-api-key-here"

# Or pass with --key
python3 scripts/stock_data.py quote AAPL --key "your-key"

Quick Start

# Get current stock quote
python3 scripts/stock_data.py quote AAPL

# Search for a ticker
python3 scripts/stock_data.py search "Apple"

# Historical daily data
python3 scripts/stock_data.py daily AAPL --output-size compact

# Intraday data (5-min intervals)
python3 scripts/stock_data.py intraday AAPL --interval 5min

# Company overview
python3 scripts/stock_data.py overview AAPL

# Top gainers and losers
python3 scripts/stock_data.py movers

# Forex exchange rate
python3 scripts/stock_data.py forex USD CAD

# Crypto price
python3 scripts/stock_data.py crypto BTC USD

# Technical indicator
python3 scripts/stock_data.py sma AAPL --interval daily --time-period 50

# Economic indicator
python3 scripts/stock_data.py gdp

# Commodity price
python3 scripts/stock_data.py commodity oil

Commands Reference

CommandDescription
----------------------
quote Real-time stock quote
search Search for ticker symbols
intraday Intraday time series (opts: --interval 1/5/15/30/60min)
daily Daily time series (opts: --output-size compact/full)
weekly Weekly time series
monthly Monthly time series
overview Company fundamentals
moversTop gainers, losers, most active
news [--topic ] [--symbol ]News & sentiment
forex Currency exchange rate
crypto Cryptocurrency price
commodity Commodity prices (oil, gold, silver, wheat, etc.)
gdpReal GDP
cpiConsumer Price Index
inflationInflation rate
treasuryTreasury yield
interestFederal funds rate
Technical indicators (sma, ema, rsi, macd, bbands, adx)

Technical Indicators

IndicatorCommandKey Params
--------------------------------
SMAsma--time-period, --interval
EMAema--time-period, --interval
RSIrsi--time-period, --interval
MACDmacd--interval
Bollinger Bandsbbands--time-period, --interval
ADXadx--time-period, --interval
ATRatr--time-period, --interval
Stochasticstoch--interval
OBVobv--interval

Output

All commands output JSON by default. Add --csv for CSV format.

Data Sources

All data from Alpha Vantage (alphavantage.co). Free API key required — get one at alphavantage.co/support/#api-key. Free tier allows 25 requests/day.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 12:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 211 📥 70,287
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 142,167
education

Smart Teacher

raychanpmp
专业教育规划工具,生成教案、课程图谱、学习计划、测评及符合布鲁姆分类学的学习目标。
★ 0 📥 655