跳到正文
TakoAPI
返回技能列表

stock-prices

由 anthonylee1994 提供

Browser & Automation
2.4k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Query real-time stock prices and market data using the Stock Prices API.

描述

该技能的功能

Fetches real-time stock quotes and market data from the Stock Prices API using ticker symbols. Responses arrive in TOON format, a compact encoding that uses roughly 40% fewer tokens than JSON, decoded with the @toon-format/toon package. Supports up to 50 symbols per request, including pre-market pricing and day-range data.

The TOON response format cuts token usage by ~40% compared to JSON, which lowers cost and latency when feeding market data into LLM prompts or streaming pipelines.

何时使用

  • Checking NVDA's price before placing an options order
  • Pulling quotes for 20 holdings at once to calculate portfolio value
  • Reviewing pre-market data for volatile stocks before the open
  • Summarizing which stocks in a watchlist are up or down today
  • Setting up a price-change alert when a ticker crosses a threshold

示例工作流

输入

User asks: What are the current prices and daily changes for AAPL, GOOGL, and MSFT?

智能体
  1. 1

    Send GET request to https://stock-prices.on99.app/quotes?symbols=AAPL,GOOGL,MSFT

  2. 2

    Decode the TOON-format response body using decode() from @toon-format/toon

  3. 3

    Extract currentPrice, change, and percentChange for each quote object

  4. 4

    Format results into a price summary per symbol

输出

AAPL: $182.50 (+1.2%), GOOGL: $175.30 (-0.4%), MSFT: $415.80 (+0.8%)

安装

clawhub install anthonylee1994/stock-prices

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接