ashares_valuation
Pack: china-stocks · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ashares_valuation for the schema, then POST the same URL with its arguments for the data.
Trailing P/E, P/B, total and float market value for China A-share stocks, from Tencent Finance.
Tool description as the model sees it
Per-stock valuation for Chinese A-shares (估值/市盈率/市净率/市值) by 6-digit code: trailing P/E (市盈率 TTM), P/B (市净率), total market value (总市值) and float market value (流通市值), with the quote time. Answers ‘P/E, P/B and market value for 300124, 600312 and 002028’, ‘300408 市值和市盈率’, ‘price-to-book of 601398 and 601288’, ‘how expensive is 汇川技术’, ‘A-share valuation per stock’. One code or a comma-separated list (up to 50). Market values are in 100 million CNY (亿元) and also given in plain CNY. A loss-making stock has no meaningful P/E: pe_ttm is null. Dividend yield and PEG are not in this source and are listed under not_provided on every row; use cn_dividend_history for dated payouts. For price, volume and turnover use ashares_quote; for index-level valuation use cn_index_valuation. Source: Tencent Finance (keyless).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbols | string | yes | One 6-digit code or a comma-separated list, e.g. “300124” or “300124,600312,002028”. sh/sz/bj prefixes are accepted but optional. |
Example call
Arguments
{
"symbols": "300124,600312"
}
curl
curl -X POST https://gateway.pipeworx.io/china-stocks/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ashares_valuation","arguments":{"symbols":"300124,600312"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ashares_valuation', {
"symbols": "300124,600312"
});
More examples
{
"symbols": "300124"
}
Response shape
| Field | Type | Description |
|---|---|---|
count | number | |
valuations | array | |
not_provided_note | string | |
source | string |
Full JSON Schema
{
"type": "object",
"additionalProperties": true,
"properties": {
"count": {
"type": "number"
},
"valuations": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"symbol": {
"type": "string"
},
"code": {
"type": "string"
},
"found": {
"type": "boolean"
},
"name": {
"type": [
"string",
"null"
]
},
"price": {
"type": [
"number",
"null"
]
},
"pe_ttm": {
"type": [
"number",
"null"
],
"description": "Trailing (TTM) price-to-earnings; null for a loss-maker"
},
"pe_note": {
"type": [
"string",
"null"
]
},
"pb": {
"type": [
"number",
"null"
],
"description": "Price-to-book"
},
"total_market_value_100m_cny": {
"type": [
"number",
"null"
],
"description": "Total market value in 100 million CNY"
},
"float_market_value_100m_cny": {
"type": [
"number",
"null"
],
"description": "Float market value in 100 million CNY"
},
"total_market_value_cny": {
"type": [
"number",
"null"
]
},
"float_market_value_cny": {
"type": [
"number",
"null"
]
},
"units": {
"type": "string"
},
"as_of": {
"type": [
"string",
"null"
],
"description": "Quote time, China local time"
},
"not_provided": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields this source does not carry (dividend_yield, peg)"
}
}
}
},
"not_provided_note": {
"type": "string"
},
"source": {
"type": "string"
}
}
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the china-stocks pack
{
"mcpServers": {
"china-stocks": {
"url": "https://gateway.pipeworx.io/china-stocks/mcp"
}
}
}
See Getting Started for client-specific install steps.