T

twelvedata

by @starchild-ai-agentv
4.4(20)

提供股票和外汇市场的实时价格数据、时间序列、报价及参考信息,支持金融数据分析。

twelve-data-apifinancial-datastock-marketreal-time-datahistorical-dataGitHub
安装方式
npx skills add starchild-ai-agent/official-skills --skill twelvedata
compare_arrows

Before / After 效果对比

1
使用前

过去,获取股票和外汇市场的实时价格数据需要手动查询多个平台,耗时费力,且数据格式不统一,难以进行高效的金融数据分析和策略回测。数据更新延迟也可能导致决策滞后。

使用后

借助twelvedata技能,现在可以轻松通过API获取标准化的实时价格、时间序列和报价信息,大幅提升数据获取效率,为金融数据分析提供坚实基础,助力快速决策。

SKILL.md

Twelve Data

Twelve Data provides stocks and forex market data including real-time quotes, historical time series, and reference data. Use for traditional markets (stocks, forex) instead of crypto.

When to Use Twelve Data

Use Twelve Data for:

  • Stock prices - Real-time and historical stock quotes
  • Forex prices - Currency pair quotes and time series
  • Time series data - OHLCV historical data
  • Reference data - Stock lists, forex pairs, exchanges
  • Search - Find stock symbols and company names

Important: Use Twelve Data for stocks and forex only. For crypto, use CoinGecko.

Common Workflows

Get Stock Price

twelvedata_quote(symbol="AAPL")  # Apple real-time quote
twelvedata_price(symbol="MSFT")  # Microsoft current price
twelvedata_quote(symbol="TSLA")  # Tesla quote with full details

Get Forex Price

twelvedata_quote(symbol="EUR/USD")  # Euro to USD
twelvedata_quote(symbol="GBP/JPY")  # British Pound to Japanese Yen

Historical Data

twelvedata_time_series(symbol="AAPL", interval="1day", outputsize="compact")  # Last 30 days
twelvedata_time_series(symbol="MSFT", interval="1h", outputsize="full")  # 5000 hourly candles
twelvedata_eod(symbol="GOOGL")  # End of day price

Batch Queries (Efficient)

twelvedata_quote_batch(symbols=["AAPL", "MSFT", "GOOGL", "TSLA"])  # Up to 120 symbols
twelvedata_price_batch(symbols=["AAPL", "MSFT"])  # Just prices

Search for Symbols

twelvedata_search(query="Apple")  # Find AAPL
twelvedata_search(query="Microsoft")  # Find MSFT
twelvedata_search(query="EUR")  # Find EUR forex pairs

Reference Data

twelvedata_stocks(exchange="NASDAQ")  # All NASDAQ stocks
twelvedata_forex_pairs()  # All forex pairs
twelvedata_exchanges(type="stock")  # All stock exchanges

Symbol Format

Stocks

Use standard ticker symbols:

  • AAPL - Apple
  • MSFT - Microsoft
  • TSLA - Tesla
  • GOOGL - Google
  • AMZN - Amazon

Forex Pairs

Use slash format:

  • EUR/USD - Euro to US Dollar
  • GBP/JPY - British Pound to Japanese Yen
  • USD/CHF - US Dollar to Swiss Franc

Intervals

Intraday

  • 1min, 5min, 15min, 30min
  • 1h, 2h, 4h, 8h

Daily and Above

  • 1day - Daily candles
  • 1week - Weekly candles
  • 1month - Monthly candles

Output Sizes

  • compact - Last 30 data points (default, faster)
  • full - Up to 5000 data points (for deep analysis)

Response Fields

Quote Response

  • symbol - Ticker symbol
  • name - Company/pair name
  • price - Current price
  • open, high, low, close - OHLC data
  • volume - Trading volume
  • change - Price change
  • percent_change - Percentage change
  • timestamp - Last update time

Time Series Response

  • datetime - Timestamp
  • open, high, low, close - OHLC
  • volume - Trading volume

Important Notes

  • API Key: Requires TWELVEDATA_API_KEY environment variable (Pro subscription)
  • Crypto: DO NOT use Twelve Data for crypto. Use CoinGecko instead.
  • Fundamental data: Fundamental data tools (income_statement, balance_sheet, etc.) require Grow/Pro+/Ultra/Enterprise tiers and are not included in this skill
  • Rate limits: Be mindful of API rate limits. Use batch endpoints for multiple symbols.
  • Real-time: Quotes are near real-time (typically 15-minute delay for free tier, real-time for Pro)

Workflow Examples

Stock Analysis

  1. Search for symbol: twelvedata_search(query="Apple")
  2. Get current quote: twelvedata_quote(symbol="AAPL")
  3. Get historical data: twelvedata_time_series(symbol="AAPL", interval="1day", outputsize="compact")

Forex Analysis

  1. Get forex pair: twelvedata_quote(symbol="EUR/USD")
  2. Get historical: twelvedata_time_series(symbol="EUR/USD", interval="1h", outputsize="compact")

Portfolio Check

  1. Batch quote: twelvedata_quote_batch(symbols=["AAPL", "MSFT", "GOOGL", "TSLA"])
  2. Analyze each stock individually if needed

Market Scan

  1. List all stocks: twelvedata_stocks(exchange="NASDAQ")
  2. Filter and analyze specific symbols

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量5.9K
评分4.4 / 5.0
版本
更新日期2026年5月23日
对比案例1 组

用户评分

4.4(20)
5
75%
4
25%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年5月23日