{"id":"2812d0f4-3fae-41fa-a32c-9567753e7641","entityType":"agent","slug":"clawhub-ezio-xiang-tencent-finance","name":"腾讯财经行情接口","canonicalUrl":"https://www.xpersona.co/agent/clawhub-ezio-xiang-tencent-finance","canonicalPath":"/agent/clawhub-ezio-xiang-tencent-finance","generatedAt":"2026-10-10T04:26:25.562Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-09T23:36:19.949Z","emptyReason":null},"description":"腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情 Skill: 腾讯财经行情接口 Owner: ezio-xiang Summary: 腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情 Tags: china:1.0.0, finance:1.0.0, latest:1.0.0, quote:1.0.0, realtime:1.0.0, stock:1.0.0 Version history: v1.0.0 | 2026-03-27T06:12:16.700Z | auto Tencent Finance real-time stock market API initial release: - Provides real-time quotes for A-shares, Hong Kong stocks, US stocks, futures, forex, and ETFs vi","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.","installCommand":"clawhub skill install s174rd2h70xskmw6a50eww4xxx83pmp3:tencent-finance","sourceUrl":"https://clawhub.ai/ezio-xiang/tencent-finance","homepage":"https://clawhub.ai/ezio-xiang/skills/tencent-finance","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/ezio-xiang/tencent-finance","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/ezio-xiang/skills/tencent-finance","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":47,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情 Skill: 腾讯财经行情接口 Owner: ezio-xiang Summary: 腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词："},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:36:19.949Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:36:19.949Z","emptyReason":null},"stars":null,"forks":null,"downloads":1881,"packageName":null,"latestVersion":"1.0.0","tractionLabel":"1.9K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-09T23:36:19.949Z","emptyReason":null},"lastUpdatedAt":"2026-10-09T23:36:19.949Z","lastCrawledAt":"2026-10-09T23:36:19.949Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-10T23:36:19.949Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.0","createdAt":"2026-03-27T06:12:16.700Z","changelog":"Tencent Finance real-time stock market API initial release: - Provides real-time quotes for A-shares, Hong Kong stocks, US stocks, futures, forex, and ETFs via Tencent’s open API. - Includes code rules and common symbol lookup tables for different markets. - Offers Python code examples for single and multiple symbol queries. - Documents main response data fields and their indices, plus important usage tips and limitations. - Suitable for both interactive use and automated/cron job data retrieval. - No account/registration needed; recommend >100ms interval per query to avoid IP blocking.","fileCount":4,"zipByteSize":6258}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s174rd2h70xskmw6a50eww4xxx83pmp3:tencent-finance","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T04:26:25.561Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-ezio-xiang-tencent-finance/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-09T23:36:19.949Z","emptyReason":null},"readme":"Skill: 腾讯财经行情接口\n\nOwner: ezio-xiang\n\nSummary: 腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情\n\nTags: china:1.0.0, finance:1.0.0, latest:1.0.0, quote:1.0.0, realtime:1.0.0, stock:1.0.0\n\nVersion history:\n\nv1.0.0 | 2026-03-27T06:12:16.700Z | auto\n\nTencent Finance real-time stock market API initial release:\n\n- Provides real-time quotes for A-shares, Hong Kong stocks, US stocks, futures, forex, and ETFs via Tencent’s open API.\n- Includes code rules and common symbol lookup tables for different markets.\n- Offers Python code examples for single and multiple symbol queries.\n- Documents main response data fields and their indices, plus important usage tips and limitations.\n- Suitable for both interactive use and automated/cron job data retrieval.\n- No account/registration needed; recommend >100ms interval per query to avoid IP blocking.\n\nArchive index:\n\nArchive v1.0.0: 4 files, 6258 bytes\n\nFiles: scripts/tencent_quote.py (5057b), skill-card.md (2367b), SKILL.md (5310b), _meta.json (134b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: tencent-finance\ndescription: 腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情\n---\n\n# 腾讯财经行情接口（Tencent Finance API）\n\n## 接口信息\n\n**Base URL：** `https://qt.gtimg.cn/q=代码`\n\n**特点：**\n- 毫秒级响应，无需注册，即插即用\n- 支持 A股、港股、美股、期货、外汇、ETF\n- 查询频率建议间隔 100ms 以上，避免封 IP\n\n---\n\n## 代码规则\n\n### A 股\n\n| 前缀 | 市场 | 示例 |\n|------|------|------|\n| `sh` | 上交所 | `sh000001`（上证指数）、`sh600519`（茅台） |\n| `sz` | 深交所 | `sz399001`（深证成指）、`sz000858`（五粮液） |\n\n### 港 股\n\n| 前缀 | 市场 | 示例 |\n|------|------|------|\n| `hk` | 港交所 | `hkHSI`（恒生指数）、`hkHSTECH`（恒生科技） |\n| `hk` | 港交所个股 | `hk00700`（腾讯）、`hk09988`（阿里） |\n\n### 美 股（指数）\n\n| 代码 | 名称 |\n|------|------|\n| `usNDX` | 纳斯达克 100 |\n| `usSPX` | 标普 500 |\n| `usDJI` | 道琼斯 |\n\n### 大宗商品\n\n| 代码 | 名称 |\n|------|------|\n| `hf_GC` | 黄金（COMEX） |\n| `hf_CL` | WTI 原油 |\n| `hf_SI` | 白银 |\n\n### 外汇\n\n| 代码 | 名称 |\n|------|------|\n| `fx_usr` | 美元/人民币（USD/CNY） |\n\n---\n\n## 数据字段说明\n\n返回字段以 `~` 分隔，关键字段索引：\n\n| 索引 | 含义 |\n|------|------|\n| `[3]` | 当前价格 |\n| `[4]` | 昨收价格 |\n| `[5]` | 今开价格 |\n| `[31]` | 涨跌额 |\n| `[32]` | 涨跌幅（%） |\n| `[33]` | 最高价 |\n| `[34]` | 最低价 |\n| `[36]` | 成交量（手） |\n| `[37]` | 成交额（万元） |\n| `[38]` | 换手率（%） |\n| `[39]` | 市盈率（PE） |\n| `[43]` | 振幅（%） |\n| `[44]` | 流通市值 |\n| `[45]` | 总市值 |\n\n---\n\n## 使用方式\n\n### 直接在脚本中调用\n\n```python\nimport requests\n\ndef get_quote(code):\n    url = f\"https://qt.gtimg.cn/q={code}\"\n    resp = requests.get(url, timeout=10)\n    data = resp.text\n    # 解析 v_xxx=\"51~名称~代码~价格~...\"\n    parts = data.split('=\"')[1].strip().strip('\";')\n    fields = parts.split('~')\n    return {\n        \"name\": fields[1],\n        \"code\": fields[2],\n        \"price\": fields[3],\n        \"yesterday_close\": fields[4],\n        \"open\": fields[5],\n        \"change\": fields[31],\n        \"change_pct\": fields[32],\n        \"high\": fields[33],\n        \"low\": fields[34],\n        \"volume\": fields[36],\n        \"turnover\": fields[37],\n        \"turnover_rate\": fields[38],\n        \"pe\": fields[39],\n        \"amplitude\": fields[43],\n    }\n\n# 示例\nquote = get_quote(\"sh000001\")\nprint(f\"{quote['name']}: {quote['price']} ({quote['change_pct']}%)\")\n```\n\n### 多只股票同时查询\n\n```python\ndef get_quotes(codes):\n    # codes: list，如 [\"sh000001\", \"sz399001\", \"hkHSI\"]\n    url = \"https://qt.gtimg.cn/q=\" + \",\".join(codes)\n    resp = requests.get(url, timeout=10)\n    results = []\n    for line in resp.text.strip().split('\\n'):\n        if '=\"v_' in line:\n            parts = line.split('=\"')[1].strip().strip('\";')\n            fields = parts.split('~')\n            results.append({\n                \"name\": fields[1],\n                \"code\": fields[2],\n                \"price\": fields[3],\n                \"change\": fields[31],\n                \"change_pct\": fields[32],\n                \"high\": fields[33],\n                \"low\": fields[34],\n            })\n    return results\n\n# 同时查询多只\nquotes = get_quotes([\"sh000001\", \"sz399001\", \"hkHSI\", \"hkHSTECH\", \"sh560860\"])\nfor q in quotes:\n    print(f\"{q['name']}: {q['price']} ({q['change_pct']}%)\")\n```\n\n---\n\n## 常用代码速查\n\n### A 股指数\n\n| 名称 | 代码 |\n|------|------|\n| 上证指数 | `sh000001` |\n| 深证成指 | `sz399001` |\n| 创业板指 | `sz399006` |\n| 沪深300 | `sh000300` |\n| 科创50 | `sh000688` |\n| 北证50 | `sz899050` |\n\n### A 股个股\n\n| 名称 | 代码 |\n|------|------|\n| 贵州茅台 | `sh600519` |\n| 宁德时代 | `sz300750` |\n| 比亚迪 | `sz002594` |\n| 招商银行 | `sh600036` |\n| 中国平安 | `sh601318` |\n| 工业有色ETF | `sh560860` |\n\n### 港股\n\n| 名称 | 代码 |\n|------|------|\n| 恒生指数 | `hkHSI` |\n| 恒生科技 | `hkHSTECH` |\n| 腾讯控股 | `hk00700` |\n| 阿里巴巴 | `hk09988` |\n| 美团 | `hk03690` |\n| 小米集团 | `hk01810` |\n| 京东集团 | `hk09618` |\n| 快手 | `hk01024` |\n\n### ETF\n\n| 名称 | 代码 |\n|------|------|\n| 工业有色ETF | `sh560860` |\n| 沪深300ETF | `sh510300` |\n| 恒生ETF | `sh159920` |\n\n---\n\n## 定时任务中的用法\n\n在 cron 任务中调用腾讯接口获取行情数据：\n\n```python\nimport requests\n\ncodes = [\"sh000001\", \"sz399001\", \"hkHSI\", \"hkHSTECH\"]\nurl = \"https://qt.gtimg.cn/q=\" + \",\".join(codes)\nresp = requests.get(url, timeout=10)\n# 解析并输出\n```\n\n---\n\n## 注意事项\n\n1. **查询频率**：建议每次调用间隔 100ms 以上，高频调用可能被封 IP\n2. **数据用途**：仅供参考，不构成投资建议\n3. **接口稳定**：腾讯接口稳定性和速度均优于国内大多数免费 API\n4. **字段缺失**：部分股票（如港股一些股票）字段可能不全，返回空字符串时跳过即可\n5. **时区**：港股交易时间 9:30-16:00 香港时间（A 股 9:30-15:00 北京时间）\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn76hsffedvb6zna0cx9nwejm983qchk\",\n  \"slug\": \"tencent-finance\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1774591936700\n}\n\nFile v1.0.0:skill-card.md\n\n## Description:\n\n腾讯财经行情接口用于通过腾讯财经公开接口查询 A 股、港股、美股指数、期货、外汇和 ETF 的实时行情数据。\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[ezio-xiang](https://clawhub.ai/user/ezio-xiang)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers, analysts, and agent builders use this skill to retrieve and format real-time market quote data for supported stock, index, commodity, forex, and ETF symbols. Outputs are suitable for interactive lookups or scheduled quote snapshots, but should be treated as informational rather than investment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Ticker symbols or code lists are sent to Tencent's finance endpoint during quote retrieval.\n\nMitigation: Avoid including personal portfolio notes, trading strategy text, or other sensitive context in ticker arguments.\n\nRisk: Returned market data may be incomplete, delayed, unavailable, or unsuitable as a basis for financial decisions.\n\nMitigation: Treat returned quotes as informational only and verify important data against authoritative market-data sources before acting on it.\n\nRisk: High-frequency polling can trigger endpoint throttling or IP blocking.\n\nMitigation: Keep requests at least 100 ms apart or use a more conservative rate limit for automated and cron-based retrieval.\n\n## Reference(s):\n\n- [Tencent Finance quote endpoint](https://qt.gtimg.cn/q=)\n- [ClawHub skill page](https://clawhub.ai/ezio-xiang/skills/tencent-finance)\n- [Publisher profile](https://clawhub.ai/user/ezio-xiang)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Code, Shell commands, Guidance]\n\n**Output Format:** [Markdown guidance with Python examples and command-line text output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Queries Tencent's public finance endpoint and formats selected quote fields such as price, open, high, low, volume, turnover, PE, and percentage change.]\n\n## Skill Version(s):\n\n1.0.0 (source: ClawHub release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.","readmeExcerpt":"Skill: 腾讯财经行情接口 Owner: ezio-xiang Summary: 腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情 Tags: china:1.0.0, finance:1.0.0, latest:1.0.0, quote:1.0.0, realtime:1.0.0, stock:1.0.0 Version history: v1.0.0 | 2026-03-27T06:12:16.700Z | auto Tencent Finance real-time stock market API initial release: - Provides real-time quotes for A-shares, Hong Kong stocks, US stocks, futures, forex, and ETFs vi","codeSnippets":[],"executableExamples":[{"language":"python","snippet":"import requests\n\ndef get_quote(code):\n    url = f\"https://qt.gtimg.cn/q={code}\"\n    resp = requests.get(url, timeout=10)\n    data = resp.text\n    # 解析 v_xxx=\"51~名称~代码~价格~...\"\n    parts = data.split('=\"')[1].strip().strip('\";')\n    fields = parts.split('~')\n    return {\n        \"name\": fields[1],\n        \"code\": fields[2],\n        \"price\": fields[3],\n        \"yesterday_close\": fields[4],\n        \"open\": fields[5],\n        \"change\": fields[31],\n        \"change_pct\": fields[32],\n        \"high\": fields[33],\n        \"low\": fields[34],\n        \"volume\": fields[36],\n        \"turnover\": fields[37],\n        \"turnover_rate\": fields[38],\n        \"pe\": fields[39],\n        \"amplitude\": fields[43],\n    }\n\n# 示例\nquote = get_quote(\"sh000001\")\nprint(f\"{quote['name']}: {quote['price']} ({quote['change_pct']}%)\")"},{"language":"python","snippet":"def get_quotes(codes):\n    # codes: list，如 [\"sh000001\", \"sz399001\", \"hkHSI\"]\n    url = \"https://qt.gtimg.cn/q=\" + \",\".join(codes)\n    resp = requests.get(url, timeout=10)\n    results = []\n    for line in resp.text.strip().split('\\n'):\n        if '=\"v_' in line:\n            parts = line.split('=\"')[1].strip().strip('\";')\n            fields = parts.split('~')\n            results.append({\n                \"name\": fields[1],\n                \"code\": fields[2],\n                \"price\": fields[3],\n                \"change\": fields[31],\n                \"change_pct\": fields[32],\n                \"high\": fields[33],\n                \"low\": fields[34],\n            })\n    return results\n\n# 同时查询多只\nquotes = get_quotes([\"sh000001\", \"sz399001\", \"hkHSI\", \"hkHSTECH\", \"sh560860\"])\nfor q in quotes:\n    print(f\"{q['name']}: {q['price']} ({q['change_pct']}%)\")"},{"language":"python","snippet":"import requests\n\ncodes = [\"sh000001\", \"sz399001\", \"hkHSI\", \"hkHSTECH\"]\nurl = \"https://qt.gtimg.cn/q=\" + \",\".join(codes)\nresp = requests.get(url, timeout=10)\n# 解析并输出"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: tencent-finance\ndescription: 腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情\n---\n\n# 腾讯财经行情接口（Tencent Finance API）\n\n## 接口信息\n\n**Base URL：** `https://qt.gtimg.cn/q=代码`\n\n**特点：**\n- 毫秒级响应，无需注册，即插即用\n- 支持 A股、港股、美股、期货、外汇、ETF\n- 查询频率建议间隔 100ms 以上，避免封 IP\n\n---\n\n## 代码规则\n\n### A 股\n\n| 前缀 | 市场 | 示例 |\n|------|------|------|\n| `sh` | 上交所 | `sh000001`（上证指数）、`sh600519`（茅台） |\n| `sz` | 深交所 | `sz399001`（深证成指）、`sz000858`（五粮液） |\n\n### 港 股\n\n| 前缀 | 市场 | 示例 |\n|------|------|------|\n| `hk` | 港交所 | `hkHSI`（恒生指数）、`hkHSTECH`（恒生科技） |\n| `hk` | 港交所个股 | `hk00700`（腾讯）、`hk09988`（阿里） |\n\n### 美 股（指数）\n\n| 代码 | 名称 |\n|------|------|\n| `usNDX` | 纳斯达克 100 |\n| `usSPX` | 标普 500 |\n| `usDJI` | 道琼斯 |\n\n### 大宗商品\n\n| 代码 | 名称 |\n|------|------|\n| `hf_GC` | 黄金（COMEX） |\n| `hf_CL` | WTI 原油 |\n| `hf_SI` | 白银 |\n\n### 外汇\n\n| 代码 | 名称 |\n|------|------|\n| `fx_usr` | 美元/人民币（USD/CNY） |\n\n---\n\n## 数据字段说明\n\n返回字段以 `~` 分隔，关键字段索引：\n\n| 索引 | 含义 |\n|------|------|\n| `[3]` | 当前价格 |\n| `[4]` | 昨收价格 |\n| `[5]` | 今开价格 |\n| `[31]` | 涨跌额 |\n| `[32]` | 涨跌幅（%） |\n| `[33]` | 最高价 |\n| `[34]` | 最低价 |\n| `[36]` | 成交量（手） |\n| `[37]` | 成交额（万元） |\n| `[38]` | 换手率（%） |\n| `[39]` | 市盈率（PE） |\n| `[43]` | 振幅（%） |\n| `[44]` | 流通市值 |\n| `[45]` | 总市值 |\n\n---\n\n## 使用方式\n\n### 直接在脚本中调用\n\n```python\nimport requests\n\ndef get_quote(code):\n    url = f\"https://qt.gtimg.cn/q={code}\"\n    resp = requests.get(url, timeout=10)\n    data = resp.text\n    # 解析 v_xxx=\"51~名称~代码~价格~...\"\n    parts = data.split('=\"')[1].strip().strip('\";')\n    fields = parts.split('~')\n    return {\n        \"name\": fields[1],\n        \"code\": fields[2],\n        \"price\": fields[3],\n        \"yesterday_close\": fields[4],\n        \"open\": fields[5],\n        \"change\": fields[31],\n        \"change_pct\": fields[32],\n        \"high\": fields[33],\n        \"low\": fields[34],\n        \"volume\": fields[36],\n        \"turnover\": fields[37],\n        \"turnover_rate\": fields[38],\n        \"pe\": fields[39],\n        \"amplitude\": fields[43],\n    }\n\n# 示例\nquote = get_quote(\"sh000001\")\nprint(f\"{quote['name']}: {quote['price']} ({quote['change_pct']}%)\")\n```\n\n### 多只股票同时查询\n\n```python\ndef get_quotes(codes):\n    # codes: list，如 [\"sh000001\", \"sz399001\", \"hkHSI\"]\n    url = \"https://qt.gtimg.cn/q=\" + \",\".join(codes)\n    resp = requests.get(url, timeout=10)\n    results = []\n    for line in resp.text.strip().split('\\n'):\n        if '=\"v_' in line:\n            parts = line.split('=\"')[1].strip().strip('\";')\n            fields = parts.split('~')\n            results.append({\n                \"name\": fields[1],\n                \"code\": fields[2],\n                \"price\": fields[3],\n                \"change\": fields[31],\n                \"change_pct\": fields[32],\n                \"high\": fields[33],\n                \"low\": fields[34],\n            })\n    return results\n\n# 同时查询多只\nquotes = get_quotes([\"sh000001\", \"sz399001\", \"hkHSI\", \"hkHSTECH\", \"sh560860\"])\nfor q in quotes:\n    print(f\"{q['name']}: {q['price']} ({q['change_pct']}%)\")\n```\n\n---\n\n## 常用代码速查\n\n### A 股指数\n\n| 名称 | 代码 |\n|------|------|\n| 上证指数 | `sh000001` |\n| 深证成指 | `sz399"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn76hsffedvb6zna0cx9nwejm983qchk\",\n  \"slug\": \"tencent-finance\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1774591936700\n}"},{"path":"skill-card.md","content":"## Description:\n\n腾讯财经行情接口用于通过腾讯财经公开接口查询 A 股、港股、美股指数、期货、外汇和 ETF 的实时行情数据。\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[ezio-xiang](https://clawhub.ai/user/ezio-xiang)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers, analysts, and agent builders use this skill to retrieve and format real-time market quote data for supported stock, index, commodity, forex, and ETF symbols. Outputs are suitable for interactive lookups or scheduled quote snapshots, but should be treated as informational rather than investment advice.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Ticker symbols or code lists are sent to Tencent's finance endpoint during quote retrieval.\n\nMitigation: Avoid including personal portfolio notes, trading strategy text, or other sensitive context in ticker arguments.\n\nRisk: Returned market data may be incomplete, delayed, unavailable, or unsuitable as a basis for financial decisions.\n\nMitigation: Treat returned quotes as informational only and verify important data against authoritative market-data sources before acting on it.\n\nRisk: High-frequency polling can trigger endpoint throttling or IP blocking.\n\nMitigation: Keep requests at least 100 ms apart or use a more conservative rate limit for automated and cron-based retrieval.\n\n## Reference(s):\n\n- [Tencent Finance quote endpoint](https://qt.gtimg.cn/q=)\n- [ClawHub skill page](https://clawhub.ai/ezio-xiang/skills/tencent-finance)\n- [Publisher profile](https://clawhub.ai/user/ezio-xiang)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Code, Shell commands, Guidance]\n\n**Output Format:** [Markdown guidance with Python examples and command-line text output]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Queries Tencent's public finance endpoint and formats selected quote fields such as price, open, high, low, volume, turnover, PE, and percentage change.]\n\n## Skill Version(s):\n\n1.0.0 (source: ClawHub release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情 Skill: 腾讯财经行情接口 Owner: ezio-xiang Summary: 腾讯财经实时行情接口，查询A股、港股、美股、期货、外汇、ETF的实时行情数据。触发关键词：查股价、查行情、查指数、腾讯接口、股票报价、实时行情 Tags: china:1.0.0, finance:1.0.0, latest:1.0.0, quote:1.0.0, realtime:1.0.0, stock:1.0.0 Version history: v1.0.0 | 2026-03-27T06:12:16.700Z | auto Tencent Finance real-time stock market API initial release: - Provides real-time quotes for A-shares, Hong Kong stocks, US stocks, futures, forex, and ETFs vi","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":762,"uniquenessScore":68,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-09T23:36:19.949Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-09T23:36:19.949Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:26:25.562Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}