Manage and summarize an A-share watchlist
Coding
fetch-stock-daily
Try itResolve a China A-share stock name or code in pure Node.js, fetch daily historical bars from Eastmoney HTTP APIs, and archive them as local JSON files. Use w...
What it does
Resolve a China A-share stock name or code in pure Node.js, fetch daily historical bars from Eastmoney HTTP APIs, and archive them as local JSON files. Use w...
The skill document
Fetch Stock Daily JSON
Use this skill for the publishable Node.js path stock input -> symbol resolution -> daily history fetch -> raw JSON archive.
Quick Start
Run the Node.js helper from the repo root:
node skills/fetch-stock-daily-json/scripts/fetch_daily_json.js 贵州茅台
node skills/fetch-stock-daily-json/scripts/fetch_daily_json.js 600519 --years 3
node skills/fetch-stock-daily-json/scripts/fetch_daily_json.js 宁德时代 --start-date 20240101 --end-date 20260329 --adjust qfq
The script prints a JSON summary with the resolved symbol, row count, requested window, actual trade-date bounds, and saved file path.
Workflow
- Accept repo-compatible inputs only: 6-digit code,
600519.SHor300750.SZ, or a Chinese stock name. Do not usesh600519. - Prefer the bundled Node.js script instead of re-implementing the workflow in the task.
- Resolve stock names through the Eastmoney A-share list API and cache the code-name map locally.
- Fetch daily bars from the Eastmoney historical kline API with
dailyperiod andqfq/hfq/noneadjustment. - Save the archived rows under
data/raw/eastmoney/daily_history/YYYYMMDD/_.json. - Default to
years=5andadjust=qfqwhen the user does not provide a date window. - Stop after JSON archive generation unless the user explicitly asks for downstream parsing, analysis, or DB sync.
Return Format
Return the script's JSON summary and call out:
resolved_symbolrowstrade_date_mintrade_date_maxoutput_path
Failure Handling
- If name resolution fails, ask for a valid 6-digit A-share code or Chinese stock name.
- If the fetch returns zero rows, keep the archive file and report
rows: 0. - If you need the JS-side API details or the parity notes versus the Python workflow, read
references/lobsterclaw-workflow.md.
Related skills
Quantitative analysis skill for the Chinese A-share market using Tushare Pro data and a holiday helper. Use when the user asks for stock screening, stock dia...
上市公司年报/研报自动抓取。覆盖巨潮资讯、东方财富等数据源,支持按公司代码/名称/年份/行业批量下载 PDF。内置反爬绕过、PDF 解析。
Read A-share themes, sector flows, intraday board charts, limit-ups, and surveys.
Query real-time stock prices, basic quote fields, and manage a Markdown watchlist for A-share, Hong Kong, and US stocks. Use when users ask in Chinese or by...
股市/股票/行情/股价/涨跌/大盘/指数/个股分析——金融/投资/股票/基金/ETF/板块/指数/宏观/外汇/大宗商品/财报/估值/持仓/交易/仓位/量化/因子/回测/选股/期权/衍生品/投行建模/技术指标/行情监控/预警——内置研究框架(红线/检索策略/数据口径/50+方法论 references/scripts)、A股量化数据引擎(12层数据源·bin/quant.py)、多市场数据层(港股/期货/期权/宏观/公告事件·bin/cn/*.py)与 8 个研报写作工作流(读年报/可比公司/深度报告/业绩快评/调研纪要/行业研究/晨会纪要/研报摘要·references/research-wo