主板股票查询 OpenClaw Skill

查询沪深主板 A 股股票列表(排除创业板、科创板)

v1.0.0 Recently Updated Updated 1 wk ago

Installation

clawhub install query-main-board-stocks

Requires npm i -g clawhub

89

Downloads

0

Stars

1

current installs

1 all-time

1

Versions

EU EU-Hosted Inference API

Power your OpenClaw skills with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

query-main-board-stocks

查询沪深主板 A 股股票列表(排除创业板、科创板)的 Baostock 工具。

功能

  • 使用 Baostock API 获取全部 A 股股票列表
  • 过滤出主板股票(沪市主板 600/601/603/605,深市主板 000/001/002/003)
  • 排除创业板(300/301)和科创板(688)
  • 输出 JSON 和 CSV 格式结果

使用方法

python query_main_board_stocks.py

输出文件

  • main_board_stocks.json - 包含股票列表的 JSON 文件
  • main_board_stocks.csv - CSV 格式股票列表(代码、名称)

依赖

pip install baostock pandas

数据源

Baostock - 免费 A 股数据平台(无需注册)

示例输出

=====================================================================
沪深主板股票查询(非创业板、非科创板)
=====================================================================
✅ 获取到 4800 只股票
✅ 主板股票:3200 只

📊 统计结果
  主板股票:3200 只
  沪市主板:1800 只
  深市主板:1400 只

Statistics

Downloads 89
Stars 0
Current installs 1
All-time installs 1
Versions 1
Comments 0
Created Apr 12, 2026
Updated Apr 12, 2026

Latest Changes

v1.0.0 · Apr 12, 2026

- Initial release of query-main-board-stocks. - Query and retrieve the main board A-share stocks from Shanghai and Shenzhen exchanges. - Excludes ChiNext (创业板) and STAR Market (科创板) stocks. - Supports output in both JSON and CSV formats. - Utilizes Baostock API for data access. - Example outputs and usage instructions included.

Quick Install

clawhub install query-main-board-stocks
EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.

Customer Support