get_hist_data
Retrieve historical stock market data for A, B, or H shares, with customizable intervals, date ranges, adjustments, and technical indicators.
Instructions
Get historical stock market data. 'eastmoney_direct' support all A,B,H shares
Input Schema
Name | Required | Description | Default |
---|---|---|---|
adjust | No | Adjustment type | none |
end_date | No | End date in YYYY-MM-DD format | 2030-12-31 |
indicators_list | No | Technical indicators to add | |
interval | No | Time interval | day |
interval_multiplier | No | Interval multiplier | |
recent_n | No | Number of most recent records to return | |
source | No | Data source | eastmoney |
start_date | No | Start date in YYYY-MM-DD format | 1970-01-01 |
symbol | Yes | Stock symbol/ticker (e.g. '000001') |
Input Schema (JSON Schema)
{
"properties": {
"adjust": {
"default": "none",
"description": "Adjustment type",
"enum": [
"none",
"qfq",
"hfq"
],
"title": "Adjust",
"type": "string"
},
"end_date": {
"default": "2030-12-31",
"description": "End date in YYYY-MM-DD format",
"title": "End Date",
"type": "string"
},
"indicators_list": {
"anyOf": [
{
"items": {
"enum": [
"SMA",
"EMA",
"RSI",
"MACD",
"BOLL",
"STOCH",
"ATR",
"CCI",
"ADX",
"WILLR",
"AD",
"ADOSC",
"OBV",
"MOM",
"SAR",
"TSF",
"APO",
"AROON",
"AROONOSC",
"BOP",
"CMO",
"DX",
"MFI",
"MINUS_DI",
"MINUS_DM",
"PLUS_DI",
"PLUS_DM",
"PPO",
"ROC",
"ROCP",
"ROCR",
"ROCR100",
"TRIX",
"ULTOSC"
],
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Technical indicators to add",
"title": "Indicators List"
},
"interval": {
"default": "day",
"description": "Time interval",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"year"
],
"title": "Interval",
"type": "string"
},
"interval_multiplier": {
"default": 1,
"description": "Interval multiplier",
"minimum": 1,
"title": "Interval Multiplier",
"type": "integer"
},
"recent_n": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": 100,
"description": "Number of most recent records to return",
"title": "Recent N"
},
"source": {
"default": "eastmoney",
"description": "Data source",
"enum": [
"eastmoney",
"eastmoney_direct",
"sina"
],
"title": "Source",
"type": "string"
},
"start_date": {
"default": "1970-01-01",
"description": "Start date in YYYY-MM-DD format",
"title": "Start Date",
"type": "string"
},
"symbol": {
"description": "Stock symbol/ticker (e.g. '000001')",
"title": "Symbol",
"type": "string"
}
},
"required": [
"symbol"
],
"type": "object"
}