MarketPulse Financial Data

支持股票与加密货币的实时及历史金融数据查询,用于分析与报告。

已扫描
适合谁
金融分析师、量化交易者
不适合谁
无金融数据需求的普通用户、无法访问外部API的封闭环境用户
国内可用性
需网络配置。可能需要网络配置或第三方服务可访问。
安装难度
新手友好(★☆☆)。基于终端操作、依赖、API Key 和本地环境要求的初步判断。

安装与下载

openclaw skills install @bowen-dotcom/aisa-market-skill

Skill 说明

命令、参数、文件名以原文为准

OpenClaw Market 📊

为自主代理提供完整的市场数据。由 AIsa 提供支持。

一个 API 密钥,涵盖股票 + 加密货币 + 金融数据。您需要的一切尽在其中。

🔥 能做什么?

跨资产投资组合

"获取我的投资组合中 BTC、ETH 的价格,以及 AAPL、NVDA 的股票数据"

投资研究

"完整分析:NVDA 的价格趋势、内部交易、分析师预测、SEC 文件"

加密货币追踪

"实时获取 BTC、ETH、SOL 的价格,并附带 30 天的历史图表"

财报分析

"获取特斯拉的财报、分析师预测及股价反应情况"

市场筛选

"找出市盈率低于 15 且营收增长率超过 20% 的股票"

大户监控

"追踪苹果公司的内部交易,并与价格变动进行关联分析"

快速开始

export AISA_API_KEY="your-key"

🏦 传统金融

股票价格

# 历史价格数据(每日)
curl "https://api.aisa.one/apis/v1/financial/prices?ticker=AAPL&interval=day&interval_multiplier=1&start_date=2025-01-01&end_date=2025-12-31" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 每周价格数据
curl "https://api.aisa.one/apis/v1/financial/prices?ticker=AAPL&interval=week&interval_multiplier=1&start_date=2025-01-01&end_date=2025-12-31" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 分钟级数据(盘内)
curl "https://api.aisa.one/apis/v1/financial/prices?ticker=AAPL&interval=minute&interval_multiplier=5&start_date=2025-01-15&end_date=2025-01-15" \
  -H "Authorization: Bearer $AISA_API_KEY"

参数说明:

  • ticker:股票代码(必填)
  • intervalsecondminutedayweekmonthyear(必填)
  • interval_multiplier:区间倍数,例如 5 表示 5 分钟 K 线(必填)
  • start_date:起始日期 YYYY-MM-DD(必填)
  • end_date:结束日期 YYYY-MM-DD(必填)

公司新闻

# 按股票代码获取新闻
curl "https://api.aisa.one/apis/v1/financial/news?ticker=AAPL&limit=10" \
  -H "Authorization: Bearer $AISA_API_KEY"

财务报表

# 所有财务报表
curl "https://api.aisa.one/apis/v1/financial/financial_statements/all?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 利润表
curl "https://api.aisa.one/apis/v1/financial/financial_statements/income?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 资产负债表
curl "https://api.aisa.one/apis/v1/financial/financial_statements/balance?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 现金流量表
curl "https://api.aisa.one/apis/v1/financial/financial_statements/cash?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

财务指标

# 实时财务指标快照
curl "https://api.aisa.one/apis/v1/financial/financial-metrics/snapshot?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 历史财务指标
curl "https://api.aisa.one/apis/v1/financial/financial-metrics?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

分析师预测

# 盈利预期(EPS)
curl "https://api.aisa.one/apis/v1/financial/analyst/eps?ticker=AAPL&period=annual" \
  -H "Authorization: Bearer $AISA_API_KEY"

内部交易

# 获取内部交易记录
curl "https://api.aisa.one/apis/v1/financial/insider/trades?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

机构持股

# 获取机构持股信息
curl "https://api.aisa.one/apis/v1/financial/institutional/ownership?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

SEC 文件

# 获取 SEC 文件
curl "https://api.aisa.one/apis/v1/financial/sec/filings?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 获取 SEC 文件内容项
curl "https://api.aisa.one/apis/v1/financial/sec/items?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

公司基本信息

# 根据 CIK 获取公司信息
curl "https://api.aisa.one/apis/v1/financial/company/facts?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"

股票筛选器

# 筛选符合条件的股票
curl -X POST "https://api.aisa.one/apis/v1/financial/search/stock" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filters":{"pe_ratio":{"max":15},"revenue_growth":{"min":0.2}}}'

利率数据

# 当前利率
curl "https://api.aisa.one/apis/v1/financial/interest_rates/snapshot" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 历史利率数据
curl "https://api.aisa.one/apis/v1/financial/interest_rates/historical?bank=fed" \
  -H "Authorization: Bearer $AISA_API_KEY"

₿ 加密货币

实时价格快照

# 获取当前 BTC 价格(使用格式:SYMBOL-USD)
curl "https://api.aisa.one/apis/v1/financial/crypto/prices/snapshot?ticker=BTC-USD" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 获取当前 ETH 价格
curl "https://api.aisa.one/apis/v1/financial/crypto/prices/snapshot?ticker=ETH-USD" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 获取当前 SOL 价格
curl "https://api.aisa.one/apis/v1/financial/crypto/prices/snapshot?ticker=SOL-USD" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 获取 TRUMP 代币价格
curl "https://api.aisa.one/apis/v1/financial/crypto/prices/snapshot?ticker=TRUMP-USD" \
  -H "Authorization: Bearer $AISA_API_KEY"

注意: 加密货币的 ticker 使用格式 SYMBOL-USD(例如 BTC-USDETH-USD)。

获取比特币历史价格(每日)

curl "https://api.aisa.one/apis/v1/financial/crypto/prices?ticker=BTC-USD&interval=day&interval_multiplier=1&start_date=2025-01-01&end_date=2025-01-31" \
  -H "Authorization: Bearer $AISA_API_KEY"

获取以太坊每小时数据

curl "https://api.aisa.one/apis/v1/financial/crypto/prices?ticker=ETH-USD&interval=minute&interval_multiplier=60&start_date=2025-01-15&end_date=2025-01-16" \
  -H "Authorization: Bearer $AISA_API_KEY"

支持的加密货币

Ticker名称
BTC-USD比特币
ETH-USD以太坊
SOL-USDSolana
BNB-USD币安币
XRP-USD瑞波
DOGE-USD狗狗币
ADA-USD卡达诺
AVAX-USD阿瓦隆
DOT-USD波卡币
MATIC-USDPolygon
LINK-USDChainlink
UNI-USDUniswap
ATOM-USDCosmos
LTC-USD莱特币
TRUMP-USD特朗普币
...以及更多

Python 客户端

# ==================== 股票数据 ====================
# 注意:prices 接口需要指定 start_date 和 end_date
python3 {baseDir}/scripts/market_client.py stock prices --ticker AAPL --start 2025-01-01 --end 2025-01-31
python3 {baseDir}/scripts/market_client.py stock prices --ticker AAPL --start 2025-01-01 --end 2025-01-31 --interval week
python3 {baseDir}/scripts/market_client.py stock news --ticker AAPL --count 10

# ==================== 财务报表 ====================
python3 {baseDir}/scripts/market_client.py stock statements --ticker AAPL --type all
python3 {baseDir}/scripts/market_client.py stock statements --ticker AAPL --type income
python3 {baseDir}/scripts/market_client.py stock statements --ticker AAPL --type balance
python3 {baseDir}/scripts/market_client.py stock statements --ticker AAPL --type cash

# ==================== 指标与分析 ====================
python3 {baseDir}/scripts/market_client.py stock metrics --ticker AAPL
python3 {baseDir}/scripts/market_client.py stock analyst --ticker AAPL

# ==================== 内部交易与机构持仓 ====================
python3 {baseDir}/scripts/market_client.py stock insider --ticker AAPL
python3 {baseDir}/scripts/market_client.py stock ownership --ticker AAPL

# ==================== SEC 文件 ====================
python3 {baseDir}/scripts/market_client.py stock filings --ticker AAPL

# ==================== 股票筛选器 ====================
python3 {baseDir}/scripts/market_client.py stock screen --pe-max 15 --growth-min 0.2

# ==================== 利率数据 ====================
python3 {baseDir}/scripts/market_client.py stock rates
python3 {baseDir}/scripts/market_client.py stock rates --historical

# ==================== 加密货币数据 ====================
# 注意:使用 SYMBOL-USD 格式(或仅 SYMBOL,将自动转换)
python3 {baseDir}/scripts/market_client.py crypto snapshot --ticker BTC-USD
python3 {baseDir}/scripts/market_client.py crypto snapshot --ticker ETH  # 自动转换为 ETH-USD
python3 {baseDir}/scripts/market_client.py crypto historical --ticker BTC-USD --start 2025-01-01 --end 2025-01-31
python3 {baseDir}/scripts/market_client.py crypto portfolio --tickers BTC-USD,ETH-USD,SOL-USD

API 端点参考

传统金融

端点方法描述
/financial/pricesGET历史股票价格(需提供 interval 参数)
/financial/newsGET按股票代码获取公司新闻
/financial/financial_statements/allGET所有财务报表
/financial/financial_statements/incomeGET收益表
/financial/financial_statements/balanceGET资产负债表
/financial/financial_statements/cashGET现金流量表
/financial/financial-metrics/snapshotGET实时财务指标快照
/financial/financial-metricsGET历史指标数据
/financial/analyst/epsGETEPS 预期数据
/financial/insider/tradesGET内部人士交易记录
/financial/institutional/ownershipGET机构持股情况
/financial/sec/filingsGETSEC 文件
/financial/sec/itemsGETSEC 文件项目
/financial/company/factsGET公司基本信息
/financial/search/stockPOST股票筛选器
/financial/interest_rates/snapshotGET当前利率
/financial/interest_rates/historicalGET历史利率数据

加密货币

端点方法描述
/financial/crypto/prices/snapshotGET实时价格快照
/financial/crypto/pricesGET历史 OHLCV 数据

定价

API成本
股票价格~$0.001
公司新闻~$0.001
财务报表~$0.002
分析师预测~$0.002
SEC 文件~$0.001
加密货币快照~$0.0005
加密货币历史数据~$0.001

每次响应均包含 usage.costusage.credits_remaining


快速开始

  1. 访问 [aisa.one](https://aisa.one) 注册账号
  2. 获取您的 API 密钥
  3. 添加信用额度(按使用量付费)
  4. 设置环境变量:export AISA_API_KEY="your-key"

完整 API 参考

查看 [API 参考文档](https://docs.aisa.one/reference/) 获取完整的端点说明。

BD
@bowen-dotcom

已收录 1 个 Skill

相关推荐