GET /stock/cn/realtime| 参数 | 位置 | 类型 | 必填 | 真实默认值 | 说明 |
|---|---|---|---|---|---|
| appkey | query | string | 否 | 无 | 付费后获取的 APPKEY |
| symbol | query | string | 否 | 无 | 默认不传递或传递空值,则获取所有 A 股实时交易数据(需要注意在获取全量数据时,数据量传输对接口调用性能的影响)。支持传递单支或多支 A 股股票代码进行筛选,多支股票用逗号隔开,格式为: 600031,688819。具体值参见 A 股股票代码参数枚举页面 |
{
"symbol": "600031,600000"
}application/json{
"type": "object",
"required": [
"DataStatus",
"Data"
],
"properties": {
"DataStatus": {
"type": "object",
"required": [
"RequestParameter",
"StatusCode",
"StatusDescription",
"ResponseDateTime",
"DataTotalCount"
],
"properties": {
"RequestParameter": {
"type": "string",
"description": "真实、可读的业务请求参数;无业务参数时为空,不包含凭据。"
},
"StatusCode": {
"type": "integer"
},
"StatusDescription": {
"type": "string"
},
"ResponseDateTime": {
"type": "string"
},
"DataTotalCount": {
"type": "integer",
"description": "本次实际返回的记录或动态表格行数。"
}
}
},
"Data": {
"type": "array",
"items": {
"type": "object",
"required": [
"Symbol",
"StockName",
"Latest",
"ChangePercent",
"ChangeAmount",
"TradingVolume",
"TradingAmount",
"Swing",
"High",
"Low",
"Open",
"PreClose",
"QuantityRatio",
"TurnoverRate",
"PERatioDynamic",
"PBRatio",
"IsLimitUp"
],
"properties": {
"Symbol": {
"type": "string",
"description": "A 股股票代码"
},
"StockName": {
"type": "string",
"description": "股票名称"
},
"Latest": {
"type": "number",
"description": "最新价,单位:元"
},
"ChangePercent": {
"type": "number",
"description": "涨跌幅,单位:%"
},
"ChangeAmount": {
"type": "number",
"description": "涨跌额,单位:元"
},
"TradingVolume": {
"type": "number",
"description": "成交量,单位:手"
},
"TradingAmount": {
"type": "number",
"description": "成交额,单位:元"
},
"Swing": {
"type": "number",
"description": "振幅,单位:%"
},
"High": {
"type": "number",
"description": "最高,单位:元"
},
"Low": {
"type": "number",
"description": "最低,单位:元"
},
"Open": {
"type": "number",
"description": "今日开盘价,单位:元"
},
"PreClose": {
"type": "number",
"description": "昨收价,单位:元"
},
"QuantityRatio": {
"type": "number",
"description": "量比"
},
"TurnoverRate": {
"type": "number",
"description": "换手率,单位:%"
},
"PERatioDynamic": {
"type": "number",
"description": "市盈率-动态"
},
"PBRatio": {
"type": "number",
"description": "市净率"
},
"IsLimitUp": {
"type": "boolean",
"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": "真实、可读的业务请求参数;无业务参数时为空,不包含凭据。"
},
"StatusCode": {
"type": "integer"
},
"StatusDescription": {
"type": "string"
},
"ResponseDateTime": {
"type": "string"
},
"DataTotalCount": {
"type": "integer",
"description": "本次实际返回的记录或动态表格行数。"
}
}
},
"Data": {
"type": "null"
}
}
}application/json{
"type": "object",
"properties": {
"DataStatus": {
"type": "object",
"required": [
"RequestParameter",
"StatusCode",
"StatusDescription",
"ResponseDateTime",
"DataTotalCount"
],
"properties": {
"RequestParameter": {
"type": "string",
"description": "真实、可读的业务请求参数;无业务参数时为空,不包含凭据。"
},
"StatusCode": {
"type": "integer"
},
"StatusDescription": {
"type": "string"
},
"ResponseDateTime": {
"type": "string"
},
"DataTotalCount": {
"type": "integer",
"description": "本次实际返回的记录或动态表格行数。"
}
}
},
"Data": {
"type": "null"
}
}
}| 业务码 | 含义 | 说明 |
|---|---|---|
| 100 | 成功 | HTTP 200;仍应检查业务状态。 |
| 501 | 参数错误 | HTTP 400 |
| 901 | 依赖失败 | HTTP 503 |