Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Stock market data query skill for China A-shares, Hong Kong, and US markets. Uses Tencent Finance HTTP API by default (lightweight, no install needed), with...
Stock market data query skill for China A-shares, Hong Kong, and US markets. Uses Tencent Finance HTTP API by default (lightweight, no install needed), with...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
Two data sources are supported. Tencent Finance HTTP API is used by default: Tencent Finance HTTP API (Default) โ Lightweight, no installation, no proxy required adata SDK (Optional) โ More comprehensive data, requires installation and possibly a proxy
Endpoint: http://qt.gtimg.cn/q=<stock_code> Stock Code Format: MarketCode PrefixExampleShanghai Main Boardsh600xxxsh600519 (Moutai)STAR Marketsh688xxxsh688111Shenzhen Main Boardsz000xxxsz000001 (Ping An Bank)ChiNext (GEM)sz300xxxsz300033ETFsz159xxxsz159919 Index Codes: IndexCodeSSE Composite (Shanghai)sh000001SZSE Component (Shenzhen)sz399001ChiNext Indexsz399006STAR 50sz399987CSI 300sh000300 Examples: # Single stock curl -s "http://qt.gtimg.cn/q=sh600519" # Multiple stocks curl -s "http://qt.gtimg.cn/q=sh600519,sh000001,sz399001" Response Fields: v_sh600519="1~่ดตๅท่ ๅฐ~600519~1460.00~1466.21~1466.99~14146~6374~7772~..." ~ Name ~ Code ~ Open ~ High ~ Low ~ Volume IndexField0Market code1Stock name2Stock code3Current price4Open price5Low price6High price30Price change31Change %
Endpoint: http://qt.gtimg.cn/q=hk<stock_code> Examples: # Tencent Holdings curl -s "http://qt.gtimg.cn/q=hk00700" # Alibaba curl -s "http://qt.gtimg.cn/q=hk09988"
Endpoint: http://qt.gtimg.cn/q=us<ticker> Examples: # Apple curl -s "http://qt.gtimg.cn/q=usAAPL" # Tesla curl -s "http://qt.gtimg.cn/q=usTSLA" # NVIDIA curl -s "http://qt.gtimg.cn/q=usNVDA"
Endpoint: https://web.ifzq.gtimg.cn/appstock/app/fqkline/get Parameters: ParameterDescription_varVariable name, e.g. kline_dayqfqparamstock_code, kline_type, start_date, end_date, count, adjust_type K-Line Types: day / week / month Adjustment Types: qfqa (forward-adjusted) / qfq (backward-adjusted) / empty (unadjusted) Examples: # Moutai daily K-line (last 10 days, forward-adjusted) curl -s "https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_dayqfq¶m=sh600519,day,,,10,qfqa" # Ping An Bank weekly K-line (last 5 weeks) curl -s "https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_weekqfq¶m=sz000001,week,,,5,qfqa" # ChiNext Index monthly K-line (last 3 months) curl -s "https://web.ifzq.gtimg.cn/appstock/app/fqkline/get?_var=kline_monthqfq¶m=sz399006,month,,,3,qfqa" Response Format: {"day": [["2026-02-27", "1466.99", "1461.19", "1476.21", "1456.01", "13534"], ...]} Date Open Close High Low Volume
Endpoint: http://qt.gtimg.cn/q=s_pk<stock_code> Example: curl -s "http://qt.gtimg.cn/q=s_pksh600519" Returns: Buy/sell volume ratios (internal vs external trades)
adata is an open-source A-share quantitative data library providing more comprehensive data. Requires installation and possibly a proxy.
pip install adata
import adata adata.proxy(is_proxy=True, ip='your-proxy-ip:port')
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
import adata # Get all A-share stock codes df = adata.stock.info.all_code() # Get K-line data df = adata.stock.market.get_market( stock_code='000001', k_type=1, # 1=daily, 2=weekly, 3=monthly start_date='2024-01-01', adjust_type=1 # 0=unadjusted, 1=forward, 2=backward ) # Real-time quotes df = adata.stock.market.list_market_current( code_list=['000001', '600519'] )
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
Encoding: Tencent Finance API returns GBK-encoded text โ decode accordingly Change %: Use the API's built-in field (index 31) โ do not calculate manually Data Delay: Real-time data may have up to 15-minute delay Request Rate: Avoid high-frequency requests โ use batch queries when possible Error Handling: Invalid stock codes return v_pv_none_match="1"
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.