history_calculate
Analyze historical A-share stock performance by querying price data to calculate trends, indicators, and technical patterns without coding.
Instructions
对于给定的A股股票代码(其他市场的股票请不要使用此工具),有现成的历史股价数据,其数据结构如下:
名称 类型 描述
ts_code str 股票代码
trade_date str 交易日期
open float 开盘价
high float 最高价
low float 最低价
close float 收盘价
pre_close float 昨收价
change float 涨跌额
pct_chg float 涨跌幅
vol float 成交量 (手)
amount float 成交额 (千元)你需要输入你想分析的股票代码以及你的问题。该工具将为你生成并执行相应的代码,并返回结果。 注意:
你无需编写任何代码——只需直接提问即可,例如:“过去一周涨了多少,有没有出现顶背离?”、“近期市场趋势如何?”、“MACD是否形成了金叉?”。
该工具只能基于上述数据结构中的数据回答问题,请勿提出需要超出该数据范围信息的问题。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A-share stock code (e.g. '600000' or '000001'). | |
| query | Yes | User question about the stock's historical performance. |