{
  "schemaVersion": "1.0",
  "item": {
    "slug": "allstock-data",
    "name": "allstock-data",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/HackSing/allstock-data",
    "canonicalUrl": "https://clawhub.ai/HackSing/allstock-data",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/allstock-data",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=allstock-data",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/allstock-data"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/allstock-data",
    "agentPageUrl": "https://openagent3.xyz/skills/allstock-data/agent",
    "manifestUrl": "https://openagent3.xyz/skills/allstock-data/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/allstock-data/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Stock Data Query",
        "body": "Two data sources are supported. Tencent Finance HTTP API is used by default:\n\nTencent Finance HTTP API (Default) — Lightweight, no installation, no proxy required\nadata SDK (Optional) — More comprehensive data, requires installation and possibly a proxy"
      },
      {
        "title": "1.1 China A-Share Real-Time Quotes",
        "body": "Endpoint:\n\nhttp://qt.gtimg.cn/q=<stock_code>\n\nStock Code Format:\n\nMarketCode PrefixExampleShanghai Main Boardsh600xxxsh600519 (Moutai)STAR Marketsh688xxxsh688111Shenzhen Main Boardsz000xxxsz000001 (Ping An Bank)ChiNext (GEM)sz300xxxsz300033ETFsz159xxxsz159919\n\nIndex Codes:\n\nIndexCodeSSE Composite (Shanghai)sh000001SZSE Component (Shenzhen)sz399001ChiNext Indexsz399006STAR 50sz399987CSI 300sh000300\n\nExamples:\n\n# Single stock\ncurl -s \"http://qt.gtimg.cn/q=sh600519\"\n\n# Multiple stocks\ncurl -s \"http://qt.gtimg.cn/q=sh600519,sh000001,sz399001\"\n\nResponse Fields:\n\nv_sh600519=\"1~贵州茅台~600519~1460.00~1466.21~1466.99~14146~6374~7772~...\"\n          ~  Name    ~ Code  ~  Open  ~  High  ~   Low  ~ Volume\n\nIndexField0Market code1Stock name2Stock code3Current price4Open price5Low price6High price30Price change31Change %"
      },
      {
        "title": "1.2 Hong Kong Stock Real-Time Quotes",
        "body": "Endpoint:\n\nhttp://qt.gtimg.cn/q=hk<stock_code>\n\nExamples:\n\n# Tencent Holdings\ncurl -s \"http://qt.gtimg.cn/q=hk00700\"\n\n# Alibaba\ncurl -s \"http://qt.gtimg.cn/q=hk09988\""
      },
      {
        "title": "1.3 US Stock Real-Time Quotes",
        "body": "Endpoint:\n\nhttp://qt.gtimg.cn/q=us<ticker>\n\nExamples:\n\n# Apple\ncurl -s \"http://qt.gtimg.cn/q=usAAPL\"\n\n# Tesla\ncurl -s \"http://qt.gtimg.cn/q=usTSLA\"\n\n# NVIDIA\ncurl -s \"http://qt.gtimg.cn/q=usNVDA\""
      },
      {
        "title": "1.4 K-Line Historical Data",
        "body": "Endpoint:\n\nhttps://web.ifzq.gtimg.cn/appstock/app/fqkline/get\n\nParameters:\n\nParameterDescription_varVariable name, e.g. kline_dayqfqparamstock_code, kline_type, start_date, end_date, count, adjust_type\n\nK-Line Types: day / week / month\n\nAdjustment Types: qfqa (forward-adjusted) / qfq (backward-adjusted) / empty (unadjusted)\n\nExamples:\n\n# Moutai daily K-line (last 10 days, forward-adjusted)\ncurl -s \"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_dayqfq&param=sh600519,day,,,10,qfqa\"\n\n# Ping An Bank weekly K-line (last 5 weeks)\ncurl -s \"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_weekqfq&param=sz000001,week,,,5,qfqa\"\n\n# ChiNext Index monthly K-line (last 3 months)\ncurl -s \"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_monthqfq&param=sz399006,month,,,3,qfqa\"\n\nResponse Format:\n\n{\"day\": [[\"2026-02-27\", \"1466.99\", \"1461.19\", \"1476.21\", \"1456.01\", \"13534\"], ...]}\n                Date       Open      Close      High       Low      Volume"
      },
      {
        "title": "1.5 Order Book Analysis",
        "body": "Endpoint:\n\nhttp://qt.gtimg.cn/q=s_pk<stock_code>\n\nExample:\n\ncurl -s \"http://qt.gtimg.cn/q=s_pksh600519\"\n\nReturns: Buy/sell volume ratios (internal vs external trades)"
      },
      {
        "title": "2. adata SDK (Optional)",
        "body": "adata is an open-source A-share quantitative data library providing more comprehensive data. Requires installation and possibly a proxy."
      },
      {
        "title": "Installation",
        "body": "pip install adata"
      },
      {
        "title": "Proxy Setup (if needed)",
        "body": "import adata\nadata.proxy(is_proxy=True, ip='your-proxy-ip:port')"
      },
      {
        "title": "Feature List",
        "body": "FeatureDescriptionStock Basic InfoAll A-share codes, share capital, SW industry classificationK-Line DataDaily/Weekly/Monthly, forward/backward adjustmentReal-Time QuotesBatch real-time pricingLevel-2 Order BookBid/ask depth dataCapital FlowIndividual stock capital flow analysisConcept SectorsThematic sector dataIndex DataMajor index quotesETFETF quotes"
      },
      {
        "title": "Usage Examples",
        "body": "import adata\n\n# Get all A-share stock codes\ndf = adata.stock.info.all_code()\n\n# Get K-line data\ndf = adata.stock.market.get_market(\n    stock_code='000001',\n    k_type=1,           # 1=daily, 2=weekly, 3=monthly\n    start_date='2024-01-01',\n    adjust_type=1        # 0=unadjusted, 1=forward, 2=backward\n)\n\n# Real-time quotes\ndf = adata.stock.market.list_market_current(\n    code_list=['000001', '600519']\n)"
      },
      {
        "title": "3. Use Case Guide",
        "body": "ScenarioRecommended SourceQuick single stock price checkTencent Finance APIK-line historical dataTencent Finance APIBatch quote queriesTencent Finance APICapital flow dataadata SDKFull financial statementsadata SDKConcept/sector analysisadata SDKLevel-2 order bookTencent Finance API or adata SDK"
      },
      {
        "title": "4. Important Notes",
        "body": "Encoding: Tencent Finance API returns GBK-encoded text — decode accordingly\nChange %: Use the API's built-in field (index 31) — do not calculate manually\nData Delay: Real-time data may have up to 15-minute delay\nRequest Rate: Avoid high-frequency requests — use batch queries when possible\nError Handling: Invalid stock codes return v_pv_none_match=\"1\""
      }
    ],
    "body": "Stock Data Query\n\nTwo data sources are supported. Tencent Finance HTTP API is used by default:\n\nTencent Finance HTTP API (Default) — Lightweight, no installation, no proxy required\nadata SDK (Optional) — More comprehensive data, requires installation and possibly a proxy\n1. Tencent Finance HTTP API (Default)\n1.1 China A-Share Real-Time Quotes\n\nEndpoint:\n\nhttp://qt.gtimg.cn/q=<stock_code>\n\n\nStock Code Format:\n\nMarket\tCode Prefix\tExample\nShanghai Main Board\tsh600xxx\tsh600519 (Moutai)\nSTAR Market\tsh688xxx\tsh688111\nShenzhen Main Board\tsz000xxx\tsz000001 (Ping An Bank)\nChiNext (GEM)\tsz300xxx\tsz300033\nETF\tsz159xxx\tsz159919\n\nIndex Codes:\n\nIndex\tCode\nSSE Composite (Shanghai)\tsh000001\nSZSE Component (Shenzhen)\tsz399001\nChiNext Index\tsz399006\nSTAR 50\tsz399987\nCSI 300\tsh000300\n\nExamples:\n\n# Single stock\ncurl -s \"http://qt.gtimg.cn/q=sh600519\"\n\n# Multiple stocks\ncurl -s \"http://qt.gtimg.cn/q=sh600519,sh000001,sz399001\"\n\n\nResponse Fields:\n\nv_sh600519=\"1~贵州茅台~600519~1460.00~1466.21~1466.99~14146~6374~7772~...\"\n          ~  Name    ~ Code  ~  Open  ~  High  ~   Low  ~ Volume\n\nIndex\tField\n0\tMarket code\n1\tStock name\n2\tStock code\n3\tCurrent price\n4\tOpen price\n5\tLow price\n6\tHigh price\n30\tPrice change\n31\tChange %\n1.2 Hong Kong Stock Real-Time Quotes\n\nEndpoint:\n\nhttp://qt.gtimg.cn/q=hk<stock_code>\n\n\nExamples:\n\n# Tencent Holdings\ncurl -s \"http://qt.gtimg.cn/q=hk00700\"\n\n# Alibaba\ncurl -s \"http://qt.gtimg.cn/q=hk09988\"\n\n1.3 US Stock Real-Time Quotes\n\nEndpoint:\n\nhttp://qt.gtimg.cn/q=us<ticker>\n\n\nExamples:\n\n# Apple\ncurl -s \"http://qt.gtimg.cn/q=usAAPL\"\n\n# Tesla\ncurl -s \"http://qt.gtimg.cn/q=usTSLA\"\n\n# NVIDIA\ncurl -s \"http://qt.gtimg.cn/q=usNVDA\"\n\n1.4 K-Line Historical Data\n\nEndpoint:\n\nhttps://web.ifzq.gtimg.cn/appstock/app/fqkline/get\n\n\nParameters:\n\nParameter\tDescription\n_var\tVariable name, e.g. kline_dayqfq\nparam\tstock_code, kline_type, start_date, end_date, count, adjust_type\n\nK-Line Types: day / week / month\n\nAdjustment Types: qfqa (forward-adjusted) / qfq (backward-adjusted) / empty (unadjusted)\n\nExamples:\n\n# Moutai daily K-line (last 10 days, forward-adjusted)\ncurl -s \"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_dayqfq&param=sh600519,day,,,10,qfqa\"\n\n# Ping An Bank weekly K-line (last 5 weeks)\ncurl -s \"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_weekqfq&param=sz000001,week,,,5,qfqa\"\n\n# ChiNext Index monthly K-line (last 3 months)\ncurl -s \"https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_monthqfq&param=sz399006,month,,,3,qfqa\"\n\n\nResponse Format:\n\n{\"day\": [[\"2026-02-27\", \"1466.99\", \"1461.19\", \"1476.21\", \"1456.01\", \"13534\"], ...]}\n                Date       Open      Close      High       Low      Volume\n\n1.5 Order Book Analysis\n\nEndpoint:\n\nhttp://qt.gtimg.cn/q=s_pk<stock_code>\n\n\nExample:\n\ncurl -s \"http://qt.gtimg.cn/q=s_pksh600519\"\n\n\nReturns: Buy/sell volume ratios (internal vs external trades)\n\n2. adata SDK (Optional)\n\nadata is an open-source A-share quantitative data library providing more comprehensive data. Requires installation and possibly a proxy.\n\nInstallation\npip install adata\n\nProxy Setup (if needed)\nimport adata\nadata.proxy(is_proxy=True, ip='your-proxy-ip:port')\n\nFeature List\nFeature\tDescription\nStock Basic Info\tAll A-share codes, share capital, SW industry classification\nK-Line Data\tDaily/Weekly/Monthly, forward/backward adjustment\nReal-Time Quotes\tBatch real-time pricing\nLevel-2 Order Book\tBid/ask depth data\nCapital Flow\tIndividual stock capital flow analysis\nConcept Sectors\tThematic sector data\nIndex Data\tMajor index quotes\nETF\tETF quotes\nUsage Examples\nimport adata\n\n# Get all A-share stock codes\ndf = adata.stock.info.all_code()\n\n# Get K-line data\ndf = adata.stock.market.get_market(\n    stock_code='000001',\n    k_type=1,           # 1=daily, 2=weekly, 3=monthly\n    start_date='2024-01-01',\n    adjust_type=1        # 0=unadjusted, 1=forward, 2=backward\n)\n\n# Real-time quotes\ndf = adata.stock.market.list_market_current(\n    code_list=['000001', '600519']\n)\n\n3. Use Case Guide\nScenario\tRecommended Source\nQuick single stock price check\tTencent Finance API\nK-line historical data\tTencent Finance API\nBatch quote queries\tTencent Finance API\nCapital flow data\tadata SDK\nFull financial statements\tadata SDK\nConcept/sector analysis\tadata SDK\nLevel-2 order book\tTencent Finance API or adata SDK\n4. Important Notes\nEncoding: Tencent Finance API returns GBK-encoded text — decode accordingly\nChange %: Use the API's built-in field (index 31) — do not calculate manually\nData Delay: Real-time data may have up to 15-minute delay\nRequest Rate: Avoid high-frequency requests — use batch queries when possible\nError Handling: Invalid stock codes return v_pv_none_match=\"1\""
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/HackSing/allstock-data",
    "publisherUrl": "https://clawhub.ai/HackSing/allstock-data",
    "owner": "HackSing",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/allstock-data",
    "downloadUrl": "https://openagent3.xyz/downloads/allstock-data",
    "agentUrl": "https://openagent3.xyz/skills/allstock-data/agent",
    "manifestUrl": "https://openagent3.xyz/skills/allstock-data/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/allstock-data/agent.md"
  }
}