AIsaFinancialData:实时股票和加密货币数据 - Openclaw Skills
作者:互联网
2026-04-03
什么是 AIsaFinancialData?
AIsaFinancialData 是 Openclaw Skills 生态系统的强大补充,为自主智能体提供访问全球金融市场的统一网关。它使开发者能够将实时价格追踪、历史 OHLCV 数据和深度基本面分析集成到智能体工作流中。通过使用单一 API 密钥,该技能弥合了复杂金融数据库与 AI 智能体之间的鸿沟,允许从传统股票交易所和波动的加密市场中检索复杂数据。
该技能专为处理金融数据的细微差别而设计,从分钟级日内 K 线到全面的 SEC 备案和内幕交易报告。无论您是在构建自动化投资组合管理器还是研究型投资机器人,使用此类 Openclaw Skills 都能确保您的智能体拥有准确金融决策和报告所需的高保真数据。
下载入口:https://github.com/openclaw/skills/tree/main/skills/aisapay/aisa-financial-data
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install aisa-financial-data
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 aisa-financial-data。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
AIsaFinancialData 应用场景
- 构建跨资产组合,同时监控比特币和苹果或英伟达等蓝筹股。
- 通过分析价格趋势以及分析师预测和 SEC 备案,进行深入的投资研究。
- 自动化加密货币追踪,实现 BTC、ETH 和新兴代币的实时价格预警。
- 通过检索季度报告并将其与价格反应相关联,进行收益分析。
- 筛选符合特定基本面标准(如市盈率和营收增长)的股票。
- 追踪大户动向和内幕交易,以识别市场情绪变化。
- AI 智能体接收金融查询,并在 Openclaw Skills 框架内识别合适的 AIsa 端点。
- 技能验证用于身份验证的 AISA_API_KEY 环境变量是否存在。
- 向 AIsa API 发送结构化请求,以获取实时快照或历史序列数据。
- 对于历史查询,技能会处理代码、间隔和日期范围等参数,以确保精确的数据检索。
- API 返回请求的金融数据以及使用成本和剩余额度元数据。
- 智能体解析返回的 JSON,向用户提供可操作的洞察、图表或报告。
AIsaFinancialData 配置指南
要使用此技能,您必须首先从 AIsa 平台获取 API 密钥。获得密钥后,请按如下方式配置您的环境:
export AISA_API_KEY="your_api_key_here"
# 确保您的环境中有 curl 和 python3 可用
然后,您可以使用提供的 Python 市场客户端或简单的 curl 命令来测试连接,以验证对市场端点的访问。
AIsaFinancialData 数据架构与分类体系
该技能返回按资产类别和金融指标分类的结构化数据。架构针对 Openclaw Skills 进行了优化,以确保 LLM 易于解析:
| 数据类型 | 关键字段 | 描述 |
|---|---|---|
| 价格数据 | ticker, interval, open, high, low, close, volume | 历史或实时 OHLCV 数据。 |
| 财务数据 | ticker, report_type, filing_date, metrics | 资产负债表、损益表和现金流量表。 |
| 加密货币 | ticker (SYMBOL-USD), price, timestamp | 实时和历史加密货币快照。 |
| 分析师数据 | ticker, eps_estimate, period | 分析师每股收益预测。 |
| 元数据 | usage.cost, usage.credits_remaining | 有关每次请求的 API 额度消耗信息。 |
name: AIsaFinancialData
description: "Query real-time and historical financial data across equities and crypto—prices, market moves, metrics, and trends for analysis, alerts, and reporting."
homepage: https://openclaw.ai
metadata: {"openclaw":{"emoji":"??","requires":{"bins":["curl","python3"],"env":["AISA_API_KEY"]},"primaryEnv":"AISA_API_KEY"}}
OpenClaw Market ??
Complete market data for autonomous agents. Powered by AIsa.
One API key. Stocks + Crypto + Financials. Everything you need.
?? What Can You Do?
Cross-Asset Portfolio
"Get BTC, ETH prices alongside AAPL, NVDA stock data for my portfolio"
Investment Research
"Full analysis: NVDA price trends, insider trades, analyst estimates, SEC filings"
Crypto Tracking
"Real-time prices for BTC, ETH, SOL with 30-day historical charts"
Earnings Analysis
"Get Tesla earnings reports, analyst estimates, and price reaction"
Market Screening
"Find stocks with P/E < 15 and revenue growth > 20%"
Whale Watching
"Track insider trades at Apple and correlate with price movements"
Quick Start
export AISA_API_KEY="your-key"
?? Traditional Finance
Stock Prices
# Historical price data (daily)
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" r
-H "Authorization: Bearer $AISA_API_KEY"
# Weekly price data
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" r
-H "Authorization: Bearer $AISA_API_KEY"
# Minute-level data (intraday)
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" r
-H "Authorization: Bearer $AISA_API_KEY"
Parameters:
ticker: Stock symbol (required)interval:second,minute,day,week,month,year(required)interval_multiplier: Multiplier for interval, e.g., 5 for 5-minute bars (required)start_date: Start date YYYY-MM-DD (required)end_date: End date YYYY-MM-DD (required)
Company News
# Get news by ticker
curl "https://api.aisa.one/apis/v1/financial/news?ticker=AAPL&limit=10" r
-H "Authorization: Bearer $AISA_API_KEY"
Financial Statements
# All financial statements
curl "https://api.aisa.one/apis/v1/financial/financial_statements/all?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
# Income statements
curl "https://api.aisa.one/apis/v1/financial/financial_statements/income?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
# Balance sheets
curl "https://api.aisa.one/apis/v1/financial/financial_statements/balance?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
# Cash flow statements
curl "https://api.aisa.one/apis/v1/financial/financial_statements/cash?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
Financial Metrics
# Real-time financial metrics snapshot
curl "https://api.aisa.one/apis/v1/financial/financial-metrics/snapshot?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
# Historical financial metrics
curl "https://api.aisa.one/apis/v1/financial/financial-metrics?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
Analyst Estimates
# Earnings per share estimates
curl "https://api.aisa.one/apis/v1/financial/analyst/eps?ticker=AAPL&period=annual" r
-H "Authorization: Bearer $AISA_API_KEY"
Insider Trading
# Get insider trades
curl "https://api.aisa.one/apis/v1/financial/insider/trades?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
Institutional Ownership
# Get institutional ownership
curl "https://api.aisa.one/apis/v1/financial/institutional/ownership?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
SEC Filings
# Get SEC filings
curl "https://api.aisa.one/apis/v1/financial/sec/filings?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
# Get SEC filing items
curl "https://api.aisa.one/apis/v1/financial/sec/items?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
Company Facts
# Get company facts by CIK
curl "https://api.aisa.one/apis/v1/financial/company/facts?ticker=AAPL" r
-H "Authorization: Bearer $AISA_API_KEY"
Stock Screener
# Screen for stocks matching criteria
curl -X POST "https://api.aisa.one/apis/v1/financial/search/stock" r
-H "Authorization: Bearer $AISA_API_KEY" r
-H "Content-Type: application/json" r
-d '{"filters":{"pe_ratio":{"max":15},"revenue_growth":{"min":0.2}}}'
Interest Rates
# Current interest rates
curl "https://api.aisa.one/apis/v1/financial/interest_rates/snapshot" r
-H "Authorization: Bearer $AISA_API_KEY"
# Historical interest rates
curl "https://api.aisa.one/apis/v1/financial/interest_rates/historical?bank=fed" r
-H "Authorization: Bearer $AISA_API_KEY"
? Cryptocurrency
Real-Time Price Snapshot
# Get current BTC price (use ticker format: SYMBOL-USD)
curl "https://api.aisa.one/apis/v1/financial/crypto/prices/snapshot?ticker=BTC-USD" r
-H "Authorization: Bearer $AISA_API_KEY"
# Get current ETH price
curl "https://api.aisa.one/apis/v1/financial/crypto/prices/snapshot?ticker=ETH-USD" r
-H "Authorization: Bearer $AISA_API_KEY"
# Get current SOL price
curl "https://api.aisa.one/apis/v1/financial/crypto/prices/snapshot?ticker=SOL-USD" r
-H "Authorization: Bearer $AISA_API_KEY"
# Get TRUMP token price
curl "https://api.aisa.one/apis/v1/financial/crypto/prices/snapshot?ticker=TRUMP-USD" r
-H "Authorization: Bearer $AISA_API_KEY"
Note: Crypto tickers use format SYMBOL-USD (e.g., BTC-USD, ETH-USD).
Historical Price Data
# Get BTC historical prices (daily)
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" r
-H "Authorization: Bearer $AISA_API_KEY"
# Get ETH hourly data
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" r
-H "Authorization: Bearer $AISA_API_KEY"
Supported Cryptocurrencies
| Ticker | Name |
|---|---|
| BTC-USD | Bitcoin |
| ETH-USD | Ethereum |
| SOL-USD | Solana |
| BNB-USD | Binance Coin |
| XRP-USD | Ripple |
| DOGE-USD | Dogecoin |
| ADA-USD | Cardano |
| AVAX-USD | Avalanche |
| DOT-USD | Polkadot |
| MATIC-USD | Polygon |
| LINK-USD | Chainlink |
| UNI-USD | Uniswap |
| ATOM-USD | Cosmos |
| LTC-USD | Litecoin |
| TRUMP-USD | Trump Token |
| ... | And many more |
Python Client
# ==================== Stock Data ====================
# Note: start_date and end_date are REQUIRED for prices
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
# ==================== Financial Statements ====================
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
# ==================== Metrics & Analysis ====================
python3 {baseDir}/scripts/market_client.py stock metrics --ticker AAPL
python3 {baseDir}/scripts/market_client.py stock analyst --ticker AAPL
# ==================== Insider & Institutional ====================
python3 {baseDir}/scripts/market_client.py stock insider --ticker AAPL
python3 {baseDir}/scripts/market_client.py stock ownership --ticker AAPL
# ==================== SEC Filings ====================
python3 {baseDir}/scripts/market_client.py stock filings --ticker AAPL
# ==================== Stock Screener ====================
python3 {baseDir}/scripts/market_client.py stock screen --pe-max 15 --growth-min 0.2
# ==================== Interest Rates ====================
python3 {baseDir}/scripts/market_client.py stock rates
python3 {baseDir}/scripts/market_client.py stock rates --historical
# ==================== Crypto Data ====================
# Note: Use ticker format SYMBOL-USD (or just SYMBOL, auto-converted)
python3 {baseDir}/scripts/market_client.py crypto snapshot --ticker BTC-USD
python3 {baseDir}/scripts/market_client.py crypto snapshot --ticker ETH # Auto-converts to 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 Endpoints Reference
Traditional Finance
| Endpoint | Method | Description |
|---|---|---|
/financial/prices |
GET | Historical stock prices (requires interval params) |
/financial/news |
GET | Company news by ticker |
/financial/financial_statements/all |
GET | All financial statements |
/financial/financial_statements/income |
GET | Income statements |
/financial/financial_statements/balance |
GET | Balance sheets |
/financial/financial_statements/cash |
GET | Cash flow statements |
/financial/financial-metrics/snapshot |
GET | Real-time financial metrics |
/financial/financial-metrics |
GET | Historical metrics |
/financial/analyst/eps |
GET | EPS estimates |
/financial/insider/trades |
GET | Insider trades |
/financial/institutional/ownership |
GET | Institutional ownership |
/financial/sec/filings |
GET | SEC filings |
/financial/sec/items |
GET | SEC filing items |
/financial/company/facts |
GET | Company facts |
/financial/search/stock |
POST | Stock screener |
/financial/interest_rates/snapshot |
GET | Current interest rates |
/financial/interest_rates/historical |
GET | Historical rates |
Cryptocurrency
| Endpoint | Method | Description |
|---|---|---|
/financial/crypto/prices/snapshot |
GET | Real-time price snapshot |
/financial/crypto/prices |
GET | Historical OHLCV data |
Pricing
| API | Cost |
|---|---|
| Stock prices | ~$0.001 |
| Company news | ~$0.001 |
| Financial statements | ~$0.002 |
| Analyst estimates | ~$0.002 |
| SEC filings | ~$0.001 |
| Crypto snapshot | ~$0.0005 |
| Crypto historical | ~$0.001 |
Every response includes usage.cost and usage.credits_remaining.
Get Started
- Sign up at aisa.one
- Get your API key
- Add credits (pay-as-you-go)
- Set environment variable:
export AISA_API_KEY="your-key"
Full API Reference
See API Reference for complete endpoint documentation.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
阿里云大模型服务平台百炼新人免费额度如何申请?申请与使用免费额度教程及常见问题解答
办公 AI 工具 OpenClaw 部署 Windows 系统一站式教程
Qwen3.6 正式发布!阿里云百炼同步开启“AI大模型节省计划”超值优惠
【新手零难度操作 】OpenClaw 2.6.4 安装误区规避与快速使用指南(包含最新版安装包)
OpenClaw 2.6.4 可视化部署 打造个人 AI 数字员工(包含最新版安装包)
【小白友好!】OpenClaw 2.6.4 本地 AI 智能体快速搭建教程(内有安装包)
零基础部署 OpenClaw v2.6.2,Windows 系统完整教程
【适合新手的】零基础部署 OpenClaw 自动化工具教程
开发者们的第一台自主进化的“爱马仕”来了
极简部署 OpenClaw 2.6.2 本地 AI 智能体快速启用(含最新版安装包)
AI精选
