szwzz/astockpursue/twelvedata

Claude Code and agent skill by szwzz/astockpursue

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Twelve Data global market API — OHLCV for stocks/forex/crypto/indices, fundamentals, financial statements. Paid with 800 free credits/day.

Install

npx vskill@latest install szwzz/astockpursue/twelvedata

SKILL.md

The same SKILL.md was published earlier as szwzz/astockpursue/twelvedata.

Twelve Data

Overview

Twelve Data (https://twelvedata.com) provides high-quality global market data. The free tier gives 800 credits/day (~80-100 API calls).

Requires API key: Set TWELVE_DATA_API_KEY environment variable.

The loader is at backtest/loaders/twelvedata.py.

Setup

bash
export TWELVE_DATA_API_KEY="your_api_key_here"

Register at https://twelvedata.com to get a free API key.

Supported Markets

MarketExchange CodesData Types
A-sharesSHH (Shanghai), SHZ (Shenzhen)OHLCV, statistics, profile
US stocksNYSE, NASDAQOHLCV, statistics, profile, statements
HK stocksHKGOHLCV, statistics, profile
Forex(auto)OHLCV
Crypto(auto)OHLCV
Indices(auto)OHLCV
Commodities(auto)OHLCV

Usage

OHLCV Data
python
from backtest.loaders.twelvedata import DataLoader
loader = DataLoader()
# Check availability
if loader.is_available():
data = loader.fetch(
codes=["AAPL.US", "600519.SH"],
start_date="2025-01-01",
end_date="2025-12-31",
interval="1D",
)
Fundamentals
python
loader = DataLoader()
# Valuation statistics
stats = loader.fetch_statistics("AAPL.US")
# Returns: {market_cap, pe_ratio, pb_ratio, ps_ratio, peg, roe, roa,
# profit_margin, eps, debt_to_equity, dividend_yield, beta, ...}
# Company profile
profile = loader.fetch_profile("AAPL.US")
# Returns: {name, industry, sector, website, description, employees, country}
# Financial statements
statements = loader.fetch_financial_statements("AAPL.US")
# Returns: {income_statement: {...}, balance_sheet: {...}, cash_flow: {...}}

Credit Usage

Each API call consumes 1 credit from your daily quota:

  • /time_series (OHLCV): 1 credit per symbol/day
  • /statistics: 1 credit per symbol
  • /profile: 1 credit per symbol
  • /income_statement + /balance_sheet + /cash_flow: 3 credits total

Free tier: 800 credits/day. A full fundamentals fetch for one stock costs ~5 credits.

Fallback Position

In the auto-routing chain, Twelve Data is positioned as a mid-tier option:

  • A-shares: tushare → tencent → twelvedata → akshare
  • US stocks: yfinance → twelvedata → akshare
  • HK stocks: yfinance → futu → tencent → twelvedata → akshare

It is only used when TWELVE_DATA_API_KEY is set AND higher-priority sources fail.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
7
Repository forks
4
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/szwzz/astockpursue/twelvedata/badge)](https://verified-skill.com/skills/szwzz/astockpursue/twelvedata)

Something wrong with this skill or its page? Tell us.