tushare_get_daily_price
Fetch daily OHLCV stock price data for a specified code and date range to support investment analysis, screening, and backtesting.
Instructions
Get daily price data for a stock (Tushare API: daily).
Args:
ts_code: Tushare stock code (e.g., "600519.SH" for 贵州茅台)
Format: {code}.{exchange} (SH=Shanghai, SZ=Shenzhen)
start_date: Start date in YYYYMMDD format (default: 30 days ago)
end_date: End date in YYYYMMDD format (default: today)
Returns:
dict: OHLCV data with date, open, high, low, close, volume, amount
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_daily_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts_code | Yes | ||
| end_date | No | ||
| start_date | No |