ttfund-skills

Query Tiantian Fund data through the official ttfund skills HTTP gateway.

2.9k|733|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/zts212653/clowder-ai --skill ttfund-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ttfund-skills
Source: https://github.com/zts212653/clowder-ai/tree/main/cat-cafe-skills/ttfund-skills
Command: npx skills add https://github.com/zts212653/clowder-ai --skill ttfund-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Accessing Tiantian Fund (天天基金) data such as fund NAV, holdings, managers, indices, gold, and bond markets requires calling the official ttfund skills HTTP gateway with the correct skill_id, version, and API key handling, which is error-prone when done by hand.

Core Features & Use Cases

  • Unified Gateway Client: A single Node.js script invokes 16 official skill IDs (fund search, NAV, holdings, manager info, gold, bond market, backtests, and more) with automatic version injection.
  • Secure API Key Loading: Reads TTFUND_APIKEY from the process environment or a gitignored .env file, keeping credentials out of tracked files and chat replies.
  • Use Case: Ask for the latest NAV of fund 000001 or search for 沪深300 index funds, and the skill returns structured JSON facts with source metadata ready for downstream finance analysis layers.

Quick Start

Set your TTFUND_APIKEY environment variable and ask the assistant to search Tiantian Fund for a fund or fetch its latest NAV using the ttfund skill.

Frequently Asked Questions about ttfund-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Tiantian Fund NAV data from the command line?

Run the ttfund-call.mjs script with the FUND_NAV_INFO skill ID and a JSON payload containing the fund code, for example {"fund_id":"000001","range":"n"}. The script posts to the official gateway and prints structured JSON.

What data can the ttfund skills gateway provide?

The gateway exposes 16 skill IDs covering fund search, fund base info, NAV history, holdings, fund managers, condition-based screening, index quotes, gold prices, bond market data, theme info, and simulated portfolio backtests.

Where do I get a TTFUND_APIKEY and how should I store it?

Open the Tiantian Fund app, search for skills, and copy the key. Store it only in the TTFUND_APIKEY environment variable or a gitignored .env file, never in tracked files, command history, or chat replies.

Why does the ttfund gateway reject my request or return an old version?

Requests missing the _skill_version field may be rejected or routed to an outdated version. The bundled script injects the correct version automatically; handwritten curl calls must include it explicitly.

Can I use ttfund skills for real trading or investment advice?

No. The gateway returns factual market data only, and MODEL_PORTFOLIO is limited to simulated backtests. It does not execute trades, access brokerage accounts, or replace macro data sources like FRED, Tushare, or AKShare.