market-data by eng0ai/eng0-template-skills
npx skills add https://github.com/eng0ai/eng0-template-skills --skill market-data通过 eng0 的数据代理服务访问美国股票市场数据。
https://api.eng0.ai/api/data
| 端点 | 用途 |
|---|---|
POST /stocks/bars | OHLCV 价格柱(1分钟到1周间隔) |
POST /stocks/news | 带有情感分析的新闻文章 |
POST /stocks/details |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 公司信息和市值 |
GET /schema | API 模式发现 |
检索股票的 OHLCV(开盘价、最高价、最低价、收盘价、成交量)柱。
curl -X POST https://api.eng0.ai/api/data/stocks/bars \
-H "Content-Type: application/json" \
-d '{
"ticker": "AAPL",
"interval": "1day",
"from": "2024-12-01",
"to": "2024-12-31"
}'
参数:
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
ticker | string | Yes | 股票代码(例如 AAPL、MSFT) |
interval | string | Yes | 1min、5min、15min、30min、1hour、4hour、1day、1week |
from | date | Yes | 开始日期 (YYYY-MM-DD) |
to | date | Yes | 结束日期 (YYYY-MM-DD) |
响应:
{
"ticker": "AAPL",
"count": 21,
"bars": [
{
"t": "2024-12-02T05:00:00.000Z",
"o": 237.27,
"h": 240.79,
"l": 237.16,
"c": 239.59,
"v": 48137103,
"vw": 239.4992,
"n": 469685
}
]
}
响应字段:
| 字段 | 描述 |
|---|---|
t | 时间戳(ISO 8601 UTC) |
o | 开盘价 |
h | 最高价 |
l | 最低价 |
c | 收盘价 |
v | 成交量 |
vw | 成交量加权平均价格 |
n | 交易笔数 |
检索带有情感分析的财经新闻文章。
curl -X POST https://api.eng0.ai/api/data/stocks/news \
-H "Content-Type: application/json" \
-d '{
"ticker": "TSLA",
"limit": 5
}'
参数:
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
ticker | string | Yes | 股票代码 |
limit | number | No | 最大文章数(默认:10,最大:100) |
响应:
{
"count": 5,
"articles": [
{
"title": "Tesla Stock Rises on Strong Delivery Numbers",
"description": "Tesla reported better-than-expected Q4 deliveries...",
"author": "John Smith",
"publisher": "Reuters",
"publishedAt": "2025-01-06T14:30:00Z",
"url": "https://...",
"tickers": ["TSLA"],
"keywords": ["electric vehicles", "deliveries"],
"sentiment": "positive",
"sentimentReasoning": "Article discusses strong delivery numbers and positive market reaction."
}
]
}
情感值: positive、negative、neutral
检索股票代码的公司信息。
curl -X POST https://api.eng0.ai/api/data/stocks/details \
-H "Content-Type: application/json" \
-d '{"ticker": "AAPL"}'
参数:
| 名称 | 类型 | 必需 | 描述 |
|---|---|---|---|
ticker | string | Yes | 股票代码 |
响应:
{
"ticker": "AAPL",
"name": "Apple Inc.",
"description": "Apple Inc. designs, manufactures, and markets smartphones...",
"market": "stocks",
"primaryExchange": "XNAS",
"type": "CS",
"currencyName": "usd",
"marketCap": 3949128102780,
"listDate": "1980-12-12",
"sicDescription": "ELECTRONIC COMPUTERS",
"homepage": "https://www.apple.com",
"totalEmployees": 164000
}
curl -X POST https://api.eng0.ai/api/data/stocks/bars \
-H "Content-Type: application/json" \
-d '{
"ticker": "NVDA",
"interval": "1day",
"from": "2024-12-07",
"to": "2025-01-07"
}'
curl -X POST https://api.eng0.ai/api/data/stocks/bars \
-H "Content-Type: application/json" \
-d '{
"ticker": "AAPL",
"interval": "1min",
"from": "2025-01-06",
"to": "2025-01-06"
}'
curl -X POST https://api.eng0.ai/api/data/stocks/bars \
-H "Content-Type: application/json" \
-d '{
"ticker": "MSFT",
"interval": "1week",
"from": "2024-01-01",
"to": "2025-01-01"
}'
curl -X POST https://api.eng0.ai/api/data/stocks/news \
-H "Content-Type: application/json" \
-d '{
"ticker": "GOOGL",
"limit": 20
}'
import requests
BASE_URL = "https://api.eng0.ai/api/data"
def get_price_bars(ticker: str, interval: str, from_date: str, to_date: str):
"""Get OHLCV price bars for a stock."""
response = requests.post(
f"{BASE_URL}/stocks/bars",
json={
"ticker": ticker,
"interval": interval,
"from": from_date,
"to": to_date
}
)
return response.json()
def get_news(ticker: str, limit: int = 10):
"""Get news articles with sentiment for a stock."""
response = requests.post(
f"{BASE_URL}/stocks/news",
json={"ticker": ticker, "limit": limit}
)
return response.json()
def get_company_details(ticker: str):
"""Get company information."""
response = requests.post(
f"{BASE_URL}/stocks/details",
json={"ticker": ticker}
)
return response.json()
# Examples
bars = get_price_bars("AAPL", "1day", "2024-12-01", "2024-12-31")
print(f"Got {bars['count']} bars for {bars['ticker']}")
news = get_news("TSLA", limit=5)
for article in news['articles']:
print(f"[{article['sentiment']}] {article['title']}")
details = get_company_details("NVDA")
print(f"{details['name']}: Market Cap ${details['marketCap']:,}")
无效参数:
{
"error": "Invalid parameters",
"message": "Missing required parameter: ticker"
}
未知操作:
{
"error": "Unknown operation",
"message": "Operation 'invalid' not found. Available: bars, news, details"
}
AAPL,而不是 aapl)此技能提供市场数据。可与以下技能结合使用:
组合工作流示例:
每周安装量
218
仓库
GitHub 星标数
1
首次出现
2026 年 1 月 22 日
安全审计
安装于
opencode195
openclaw195
gemini-cli190
codex189
cursor185
github-copilot182
Access US stock market data through eng0's data proxy service.
https://api.eng0.ai/api/data
| Endpoint | Purpose |
|---|---|
POST /stocks/bars | OHLCV price bars (1min to 1week intervals) |
POST /stocks/news | News articles with sentiment analysis |
POST /stocks/details | Company information and market cap |
GET /schema | API schema discovery |
Retrieve OHLCV (Open, High, Low, Close, Volume) bars for a stock.
curl -X POST https://api.eng0.ai/api/data/stocks/bars \
-H "Content-Type: application/json" \
-d '{
"ticker": "AAPL",
"interval": "1day",
"from": "2024-12-01",
"to": "2024-12-31"
}'
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock symbol (e.g., AAPL, MSFT) |
interval | string | Yes | 1min, 5min, 15min, 30min, , , , |
Response:
{
"ticker": "AAPL",
"count": 21,
"bars": [
{
"t": "2024-12-02T05:00:00.000Z",
"o": 237.27,
"h": 240.79,
"l": 237.16,
"c": 239.59,
"v": 48137103,
"vw": 239.4992,
"n": 469685
}
]
}
Response Fields:
| Field | Description |
|---|---|
t | Timestamp (ISO 8601 UTC) |
o | Open price |
h | High price |
l | Low price |
c | Close price |
v | Volume |
vw |
Retrieve financial news articles with sentiment analysis.
curl -X POST https://api.eng0.ai/api/data/stocks/news \
-H "Content-Type: application/json" \
-d '{
"ticker": "TSLA",
"limit": 5
}'
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock symbol |
limit | number | No | Max articles (default: 10, max: 100) |
Response:
{
"count": 5,
"articles": [
{
"title": "Tesla Stock Rises on Strong Delivery Numbers",
"description": "Tesla reported better-than-expected Q4 deliveries...",
"author": "John Smith",
"publisher": "Reuters",
"publishedAt": "2025-01-06T14:30:00Z",
"url": "https://...",
"tickers": ["TSLA"],
"keywords": ["electric vehicles", "deliveries"],
"sentiment": "positive",
"sentimentReasoning": "Article discusses strong delivery numbers and positive market reaction."
}
]
}
Sentiment Values: positive, negative, neutral
Retrieve company information for a stock ticker.
curl -X POST https://api.eng0.ai/api/data/stocks/details \
-H "Content-Type: application/json" \
-d '{"ticker": "AAPL"}'
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock symbol |
Response:
{
"ticker": "AAPL",
"name": "Apple Inc.",
"description": "Apple Inc. designs, manufactures, and markets smartphones...",
"market": "stocks",
"primaryExchange": "XNAS",
"type": "CS",
"currencyName": "usd",
"marketCap": 3949128102780,
"listDate": "1980-12-12",
"sicDescription": "ELECTRONIC COMPUTERS",
"homepage": "https://www.apple.com",
"totalEmployees": 164000
}
curl -X POST https://api.eng0.ai/api/data/stocks/bars \
-H "Content-Type: application/json" \
-d '{
"ticker": "NVDA",
"interval": "1day",
"from": "2024-12-07",
"to": "2025-01-07"
}'
curl -X POST https://api.eng0.ai/api/data/stocks/bars \
-H "Content-Type: application/json" \
-d '{
"ticker": "AAPL",
"interval": "1min",
"from": "2025-01-06",
"to": "2025-01-06"
}'
curl -X POST https://api.eng0.ai/api/data/stocks/bars \
-H "Content-Type: application/json" \
-d '{
"ticker": "MSFT",
"interval": "1week",
"from": "2024-01-01",
"to": "2025-01-01"
}'
curl -X POST https://api.eng0.ai/api/data/stocks/news \
-H "Content-Type: application/json" \
-d '{
"ticker": "GOOGL",
"limit": 20
}'
import requests
BASE_URL = "https://api.eng0.ai/api/data"
def get_price_bars(ticker: str, interval: str, from_date: str, to_date: str):
"""Get OHLCV price bars for a stock."""
response = requests.post(
f"{BASE_URL}/stocks/bars",
json={
"ticker": ticker,
"interval": interval,
"from": from_date,
"to": to_date
}
)
return response.json()
def get_news(ticker: str, limit: int = 10):
"""Get news articles with sentiment for a stock."""
response = requests.post(
f"{BASE_URL}/stocks/news",
json={"ticker": ticker, "limit": limit}
)
return response.json()
def get_company_details(ticker: str):
"""Get company information."""
response = requests.post(
f"{BASE_URL}/stocks/details",
json={"ticker": ticker}
)
return response.json()
# Examples
bars = get_price_bars("AAPL", "1day", "2024-12-01", "2024-12-31")
print(f"Got {bars['count']} bars for {bars['ticker']}")
news = get_news("TSLA", limit=5)
for article in news['articles']:
print(f"[{article['sentiment']}] {article['title']}")
details = get_company_details("NVDA")
print(f"{details['name']}: Market Cap ${details['marketCap']:,}")
Invalid Parameters:
{
"error": "Invalid parameters",
"message": "Missing required parameter: ticker"
}
Unknown Operation:
{
"error": "Unknown operation",
"message": "Operation 'invalid' not found. Available: bars, news, details"
}
AAPL, not aapl)This skill provides market data. Combine with:
Example combined workflow:
Weekly Installs
218
Repository
GitHub Stars
1
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode195
openclaw195
gemini-cli190
codex189
cursor185
github-copilot182
DOCX文件创建、编辑与分析完整指南 - 使用docx-js、Pandoc和Python脚本
46,400 周安装
1hour4hour1day1weekfrom | date | Yes | Start date (YYYY-MM-DD) |
to | date | Yes | End date (YYYY-MM-DD) |
| Volume-weighted average price |
n | Number of transactions |