tushare_get_weekly_price
Retrieve weekly OHLCV price data for a stock over a specified date range using the Tushare API, enabling historical price review and trend analysis.
Instructions
Get weekly price data for a stock (Tushare API: weekly).
Args:
ts_code: Tushare stock code (e.g., "600519.SH")
start_date: Start date in YYYYMMDD format
end_date: End date in YYYYMMDD format
Returns:
dict: Weekly OHLCV data
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ts_code": "<ts_code>"
},
"name": "tushare_get_weekly_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts_code | Yes | ||
| end_date | No | ||
| start_date | No |