compare_industry_valuation
Compare a stock's PE, PB, and PS ratios against its industry peers to assess relative valuation.
Instructions
Compare a stock's valuation (PE/PB/PS) against its industry peers.
Behavior contract:
Raises NoDataFoundError if
codeis absent from the industry table fordate, has no industry classification (delisted / legacy stock), or has no K-line in the lookback window — it will not return a result without the target.Peers whose K-line is missing are listed in
peer_coverage.skippedwith the reason. Industry statistics exclude the target itself and use POSITIVE values only; the center stat istrimmed_mean(10% per tail, >=1 each side), not a raw mean.industry_stats[metric].countreports peers per statistic.
Args: code: Target stock code. date: Comparison date 'YYYY-MM-DD'. Defaults to latest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| date | No |