agentsclimarketplace

Stock security info

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/stock-security-info

FTShare Agent Skills for financial data and investment research workflows|金融数据 Skill 与投研业务 Skill 仓库。

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill stock-security-info

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

查询单只股票/基金/指数信息。当用户需要按标的代码查询单只股票、基金或指数的实时行情、多周期涨跌幅及估值指标(市盈率、市净率、每股净资产等),或了解单只股票/基金/指数信息时使用。

SKILL.md

5.7 KB, ~2.1k tokens by cl100k_base, as published. Nobody here has run it

查询单只股票/基金/指数信息

接口说明

项目说明
接口名称查询单只股票/基金/指数信息
外部接口https://ftai.chat/api/v1/market/security/{symbol}/info
请求方式GET
适用场景按标的代码查询单只股票、基金或指数的实时行情、多周期涨跌幅及估值指标(市盈率、市净率、每股净资产等)

注意:本接口域名为 https://ftai.chat,与其他子 skill 的 https://market.ft.tech 不同。

请求参数

说明:标的代码通过路径参数 {symbol} 传入,无需 Query 参数。

参数名类型是否必填描述取值示例备注
symbolstring标的代码(路径参数)600519.SH带市场后缀,如 600519.SH、000001.SZ

执行方式

通过根目录的 run.py 调用(推荐):

python <RUN_PY> stock-security-info --symbol 600519.SH

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径,参见主 SKILL.md 的「调用方式」说明。

响应说明

返回值为单只股票/基金/指数信息对象,包含实时行情、多周期涨跌幅及估值指标。数据模型如下:

{
    "type": "stock",
    "symbol": "600519.SH",
    "symbol_id": "600519",
    "symbol_name": "贵州茅台",
    "board": "sh",
    "open": "1402.99",
    "high": "1405.99",
    "low": "1398.02",
    "close": "1400.97",
    "prev_close": "1401.88",
    "change": "-0.91",
    "change_rate": -0.000649128313407709,
    "avg": 1401.147216194,
    "amplitude": 0.00568522270094447,
    "volume": 1116784,
    "turnover": "1564778792.69",
    "turnover_rate": 0.000891807524145258,
    "ts_nanos": 1773197525000000000,
    "limit_up": "1542.07",
    "limit_down": "1261.69",
    "change_rate_day5": -0.0176834783584235,
    "change_rate_day10": -0.0448800109080993,
    "change_rate_day20": -0.0182410651716889,
    "change_rate_day60": 0.000676417458856033,
    "change_rate_ytd": -0.0175525946704067,
    "shares": 1252270215,
    "float_a_shares": 1252270215,
    "market_cap": "1754393003108.55",
    "float_a_market_cap": "1754393003108.55",
    "bvps": "181.3261",
    "eps_ttm": "71.8913",
    "pe_ttm": 19.4873371325877,
    "pb": 7.72624569766846,
    "ps_ttm": 9.82430926018285,
    "roe_ttm": 0.350206,
    "bid_ask_ratio": -0.735294117647059,
    "introduction": ""
}

响应结构(字段说明)

字段名类型是否可为空说明单位
typeString标的类型。取值:stock(股票)、index(指数)、etf(基金)-
symbolString标的代码,带市场后缀-
symbol_idString标的 ID,不含市场后缀的数字代码-
symbol_nameString标的名称(股票/基金/指数名称)-
boardString股票板块。取值:sh(上交所主板)、sz(深交所主板)、sz_chi_next(深交所创业板)、sh_star(上交所科创板)、bj(北交所)、hk(港股)-
openString开盘价
highString最高价
lowString最低价
closeString收盘价或最新价;公式 = 收盘价.or(最新价).or(前收盘价)
prev_closeString前收盘价。上市首日为发行价;除权(息)日为除权(息)参考价
changeString涨跌额;公式 = 最新价 - 前收盘价
change_ratefloat涨跌幅;公式 = 涨跌额 / 前收盘价小数
avgfloat均价;公式 = 成交额 / 成交量
amplitudefloat振幅;公式 = (最高价 - 最低价) / 前收盘价小数
volumeint成交量
turnoverString成交额
turnover_ratefloat换手率;公式 = 成交量 / 流通股本小数
ts_nanosnumber交易所时间戳,单位纳秒-
limit_upString涨停价
limit_downString跌停价
change_rate_day5float5 日涨跌幅小数
change_rate_day10float10 日涨跌幅小数
change_rate_day20float20 日涨跌幅小数
change_rate_day60float60 日涨跌幅小数
change_rate_ytdfloat年初至今涨跌幅小数
sharesint股本(总股本)
float_a_sharesint流通 A 股股本
market_capString市值;公式 = 股本 × 最新价
float_a_market_capString流通 A 股市值;公式 = 流通 A 股股本 × 最新价
bvpsString每股净资产元/股
eps_ttmString每股收益(TTM)元/股
pe_ttmfloat市盈率(TTM)-
pbfloat市净率-
ps_ttmfloat市销率(TTM)-
roe_ttmfloat净资产收益率(TTM)小数
bid_ask_ratiofloat委比;公式 = (买盘量 - 卖盘量) / (买盘量 + 卖盘量)小数
introductionString公司中文简介-

注意事项

  • 涨跌幅、换手率、振幅等比率字段均为小数形式,展示时乘以 100 转为百分比
  • market_capturnover 等大数字为字符串,展示时可按需转换为亿元(除以 1e8)
  • introduction 可为空字符串 "",展示时做空值判断

Gives 0 of the 12 instructions most security skills give in ~2.1k tokens

Counted across 648 of the 828 authors here whose files we hold, read 2026-08-07

  • parameterize all database queriesin 68 of 648, across 51 files
  • hash passwords using bcrypt scrypt or argon2in 49 of 648, across 36 files
  • apply rate limiting to authentication endpointsin 48 of 648, across 24 files
  • Configure security headersin 35 of 648, across 19 files
  • validate all inputsin 32 of 648, across 24 files
  • validate all external input at the system boundaryin 29 of 648, across 19 files
  • run containers as a non-root userin 28 of 648, across 15 files
  • use httponly secure samesite cookies for sessionsin 26 of 648, across 15 files
  • run dependency audits before every releasein 21 of 648, across 10 files
  • encode output to prevent cross-site scriptingin 21 of 648, across 11 files
  • copy dependencies before source codein 20 of 648, across 9 files
  • store secrets in environment variablesin 20 of 648, across 18 files

Said here and by no other author read

  • pass security code via symbol parameter
  • include market suffix in security code
  • convert ratio fields to percentage on display
  • convert large numbers to billion yuan on display
  • check for empty string before displaying introduction

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.