Tushare Stk Ah Comparison

1 credits/call
ae_tushare_stk_ah_comparison

Compare price quotes, percentage changes, ratios, and premiums between dual-listed mainland China A shares and Hong Kong H shares using Tushare.

Productivity
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
fieldsarrayNo指定返回字段,不传则返回默认字段。 默认字段: hk_code, ts_code, trade_date, hk_name, hk_pct_chg, hk_close, name, close, pct_chg, ah_comparison, ah_premium 额外可选字段: (所有字段均为默认返回,无需指定)—
hk_codestringNo港股股票代码(xxxxx.HK)—
ts_codestringNoA股票代码(xxxxxx.SH/SZ/BJ)—
end_datestringNo结束日期—
start_datestringNo开始日期—
trade_datestringNo交易日期(格式:YYYYMMDD下同)—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_tushare_stk_ah_comparison' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "end_date": "20261030",
    "start_date": "20261013",
    "ts_code": "601628.SH"
  }
}'
Response exampleresponse.json
JSONPartial content
[
  {
    "ah_comparison": 1.71,
    "ah_premium": 70.88,
    "close": 34.6,
    "hk_close": 23.88,
    "hk_code": "02628.HK",
    "name": "中国人寿"
  }
]

This example shows part of the response. Copied content is valid JSON.