GET /stock/cn/realtimeindex| 参数 | 位置 | 类型 | 必填 | 真实默认值 | 说明 |
|---|---|---|---|---|---|
| appkey | query | string | 否 | 无 | 付费后获取的 APPKEY。 |
| symbol | query | string | 否 | 无 | 指数代码筛选参数,支持单个或多个指数代码,多个代码使用英文逗号分隔,单次最多 10 个;示例:sh000001,sh000002。具体值参见 中国股票指数代码参数枚举页面。 |
{
"symbol": "sh000001,sz399001"
}application/json{
"type": "object",
"required": [
"DataStatus",
"Data"
],
"properties": {
"DataStatus": {
"type": "object",
"required": [
"RequestParameter",
"StatusCode",
"StatusDescription",
"ResponseDateTime",
"DataTotalCount"
],
"properties": {
"RequestParameter": {
"type": "string",
"description": "本次实际业务请求参数,不包含鉴权凭据;Demo 展示对应样例输入。"
},
"StatusCode": {
"type": "integer",
"description": "接口返回状态码。"
},
"StatusDescription": {
"type": "string",
"description": "接口返回状态说明。"
},
"ResponseDateTime": {
"type": "string",
"description": "接口数据返回时间。"
},
"DataTotalCount": {
"type": "integer",
"description": "此条件下的总数据量,一般用于分页计算。"
}
}
},
"Data": {
"type": "array",
"items": {
"type": "object",
"required": [
"Symbol",
"StockName",
"Latest",
"ChangeAmount",
"ChangePercent",
"PreClose",
"Open",
"High",
"Low",
"TradingVolume",
"TradingAmount"
],
"additionalProperties": false,
"properties": {
"Symbol": {
"type": "string",
"description": "股票指数代码。"
},
"StockName": {
"type": "string",
"description": "股票指数名称。"
},
"Latest": {
"type": "number",
"description": "最新价。"
},
"ChangeAmount": {
"type": "number",
"description": "涨跌额。"
},
"ChangePercent": {
"type": "number",
"description": "涨跌幅,单位:%。"
},
"PreClose": {
"type": "number",
"description": "昨收价。"
},
"Open": {
"type": "number",
"description": "今日开盘价。"
},
"High": {
"type": "number",
"description": "当日最高价。"
},
"Low": {
"type": "number",
"description": "当日最低价。"
},
"TradingVolume": {
"type": "number",
"description": "成交量。"
},
"TradingAmount": {
"type": "number",
"description": "成交额。"
}
},
"description": "按来源代码升序排列的指数对象数组。"
},
"description": "按来源代码升序排列的指数对象数组。"
}
}
}application/json{
"$ref": "#/components/schemas/CommonResponse"
}application/json{
"$ref": "#/components/schemas/CommonResponse"
}application/json{
"$ref": "#/components/schemas/CommonResponse"
}application/json{
"$ref": "#/components/schemas/CommonResponse"
}application/json{
"type": "object",
"properties": {
"DataStatus": {
"type": "object",
"required": [
"RequestParameter",
"StatusCode",
"StatusDescription",
"ResponseDateTime",
"DataTotalCount"
],
"properties": {
"RequestParameter": {
"type": "string",
"description": "本次实际业务请求参数,不包含鉴权凭据;Demo 展示对应样例输入。"
},
"StatusCode": {
"type": "integer",
"description": "接口返回状态码。"
},
"StatusDescription": {
"type": "string",
"description": "接口返回状态说明。"
},
"ResponseDateTime": {
"type": "string",
"description": "接口数据返回时间。"
},
"DataTotalCount": {
"type": "integer",
"description": "此条件下的总数据量,一般用于分页计算。"
}
}
},
"Data": {
"type": "null",
"description": "按来源代码升序排列的指数对象数组。"
}
}
}application/json{
"type": "object",
"properties": {
"DataStatus": {
"type": "object",
"required": [
"RequestParameter",
"StatusCode",
"StatusDescription",
"ResponseDateTime",
"DataTotalCount"
],
"properties": {
"RequestParameter": {
"type": "string",
"description": "本次实际业务请求参数,不包含鉴权凭据;Demo 展示对应样例输入。"
},
"StatusCode": {
"type": "integer",
"description": "接口返回状态码。"
},
"StatusDescription": {
"type": "string",
"description": "接口返回状态说明。"
},
"ResponseDateTime": {
"type": "string",
"description": "接口数据返回时间。"
},
"DataTotalCount": {
"type": "integer",
"description": "此条件下的总数据量,一般用于分页计算。"
}
}
},
"Data": {
"type": "null",
"description": "按来源代码升序排列的指数对象数组。"
}
}
}| 业务码 | 含义 | 说明 |
|---|---|---|
| 100 | 成功 | HTTP 200;仍应检查业务状态。 |
| 501 | 参数错误 | HTTP 400 |
| 901 | 依赖失败 | HTTP 503 |