据 AlphaMoat 统计,截至 2026-09,Stock Prices 累计下载 4,829 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 1,944 位,在「开发编程」分类(577 个)中排名第 248 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 157 | 4,742 | - | - |
| SkillHub ↗ | 440 | 4,829 | - | — |
各平台的计数口径不同,统计时间不一致。
文档涵盖价格、涨跌、日内区间与盘前字段。需先用TOON解码器解析并检查空结果;价格单位为USD,时间为UTC,具体数据时效与接口可用性需核对。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 4,829 | — | - |
| 2026-08 | 4,616 | +4.0% | - |
| 2026-07 | 4,437 | +8.1% | - |
| 2026-06 | 4,106 | +4.9% | - |
| 2026-05 | 3,916 | — | - |
| 2026-03 | 3,040 | — | - |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: stock-prices description: Query real-time stock prices and market data using the Stock Prices API. Responses are in TOON format—decode with @toon-format/toon. Use when fetching stock quotes, analyzing market data, or working with symbols like AAPL, NVDA, GOOGL, or any ticker symbols. --- # Stock Prices API Skill This skill helps you work with the Stock Prices API to fetch real-time market data and stock quotes. ## API Endpoint
**Base URL**: `https://stock-prices.on99.app`
**Primary Endpoint**: `/quotes?symbols={SYMBOLS}`
## Quick Start
Fetch stock quotes for one or more symbols (responses are in TOON format):
```bash
curl "https://stock-prices.on99.app/quotes?symbols=NVDA"
curl "https://stock-prices.on99.app/quotes?symbols=AAPL,GOOGL,MSFT"
```
Install the TOON decoder for parsing: `pnpm add @toon-format/toon`
## Response Format
The API returns **TOON** (Token-Oriented Object Notation) format—a compact, human-readable encoding that uses ~40% fewer tokens than JSON. This makes it ideal for LLM prompts and streaming.
### TOON Response Example
```
quotes[1]{symbol,currentPrice,change,percentChange,highPrice,lowPrice,openPrice,previousClosePrice,preMarketPrice,preMarketChange,preMarketTime,preMarketChangePercent,...}:
NVDA,188.54,-1.5,-0.789308,192.48,188.12,191.405,190.04,191.8799,3.3399048,2026-02-11T13:49:16.000Z,1.771457,...
```
### Decoding TOON Responses
Use `@toon-format/toon` to parse responses back to JavaScript/JSON:
```typescript
import { decode } from "@toon-format/toon";
const response = await fetch("https://stock-prices.on99.app/quotes?symbols=NVDA");
const toonText = await response.text();
const data = decode(toonText);
// data.quotes is an array of quote objects
const quote = data.quotes[0];
console.log(`${quote.symbol}: $${quote.currentPrice}`);
```
The decoded structure matches JSON—same objects, arrays, and primitives.
## Available Data Fields
| Field | Type | Description |
| ------------------------ | ----------------- | ------------------------------------- |
| `symbol` | string | Stock ticker symbol |
| `currentPrice` | number | Current trading price |
| `change` | number | Price change from previous close |
| `percentChange` | number | Percentage change from previous close |
| `highPrice` | number | Day's high price |
| `lowPrice` | number | Day's low price |
| `openPrice` | number | Opening price |
| `previousClosePrice` | number | Previous day's closing price |
| `preMarketPrice` | number | Pre-market trading price |
| `preMarketChange` | number | Pre-market price change |
| `preMarketTime` | string (ISO 8601) | Pre-market data timestamp |
| `preMarketChangePercent` | number | Pre-market percentage change |
## Usage Guidelines
### Multiple Symbols
Query multiple stocks by separating symbols with commas (max 50):
```bash
curl "https://stock-prices.on99.app/quotes?symbols=AAPL,GOOGL,MSFT,TSLA,AMZN"
```
### Error Handling
Always check for valid responses. Decode TOON before accessing data:
```typescript
import { decode } from "@toon-format/toon";
const response = await fetch("https://stock-prices.on99.app/quotes?symbols=NVDA");
const data = decode(await response.text());
if (data.quotes && data.quotes.length > 0) {
const quote = data.quotes[0];
console.log(`${quote.symbol}: $${quote.currentPrice}`);
}
```
### Price Analysis
Calculate common metrics:
```typescript
// Determine if stock is up or down
const isUp = quote.change > 0;
const direction = isUp ? "📈" : "📉";
// Calculate day's range percentage
const rangePct = ((quote.highPrice - quote.lowPrice) / quote.lowPrice) * 100;
// Compare current to open
const vsOpen = quote.currentPrice - quote.openPrice;
```
## Common Use Cases
### 1. Price Monitoring
```typescript
import { decode } from "@toon-format/toon";
async function checkPrice(symbol: string) {
const res = await fetch(`https://stock-prices.on99.app/quotes?symbols=${symbol}`);
const data = decode(await res.text());
const quote = data.quotes[0];
return {
price: quote.currentPrice,
change: quote.change,
changePercent: quote.percentChange,
};
}
```
### 2. Portfolio Tracking
```typescript
import { decode } from "@toon-format/toon";
async function getPortfolio(symbols: string[]) {
const symbolString = symbols.join(",");
const res = await fetch(`https://stock-prices.on99.app/quotes?symbols=${symbolString}`);
const data = decode(await res.text());
return data.quotes.map(q => ({
symbol: q.symbol,
value: q.currentPrice,
dailyChange: q.percentChange,
}));
}
```
### 3. Market Summary
```typescript
import { decode } from "@toon-format/toon";
async function marketSummary(symbols: string[]) {
const res = await fetch(`https://stock-prices.on99.app/quotes?symbols=${symbols.join(",")}`);
const data = decode(await res.text());
const gainers = data.quotes.filter(q => q.change > 0);
const losers = data.quotes.filter(q => q.change < 0);
return {
totalStocks: data.quotes.length,
gainers: gainers.length,
losers: losers.length,
avgChange: data.quotes.reduce((sum, q) => sum + q.percentChange, 0) / data.quotes.length,
};
}
```
## Popular Stock Symbols
### Tech Giants (FAANG+)
- `AAPL` - Apple
- `GOOGL` - Alphabet (Google)
- `META` - Meta (Facebook)
- `AMZN` - Amazon
- `NFLX` - Netflix
- `MSFT` - Microsoft
### High-Profile Stocks
- `NVDA` - NVIDIA
- `TSLA` - Tesla
- `AMD` - Advanced Micro Devices
- `INTC` - Intel
- `ORCL` - Oracle
### Indices
- `^GSPC` - S&P 500
- `^DJI` - Dow Jones
- `^IXIC` - NASDAQ
## Notes
- **Response format**: API returns TOON, not JSON. Use `decode()` from `@toon-format/toon` to parse.
- All prices are in USD
- Data updates in real-time during market hours
- Pre-market and after-hours data is available
- Timestamps are in ISO 8601 format (UTC)
- Maximum 50 symbols per request
用 gh 命令行工具查看 GitHub 上的 PR 检查、工作流运行与 API 查询的技能。
聚合 16 个搜索引擎、无需 API Key 的检索技能。
用命令行直接列出、配置、授权并调用 MCP 服务与工具。
生成有效的 Mermaid 图表,如流程图、时序图、思维导图、ER 图、用户旅程等。
用受管 OAuth 访问 YouTube Data API,检索视频并管理频道内容。
通过受管的 OAuth 连接访问 GitHub REST API。
覆盖规划、实现、验证与测试的编码工作流技能。
整理 Docker 常用命令与容器工作流的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。