GET /stock/hk/realtime| 参数 | 位置 | 类型 | 必填 | 真实默认值 | 说明 |
|---|---|---|---|---|---|
| appkey | query | string | 否 | 无 | 付费后获取的 APPKEY |
| symbol | query | string | 否 | 无 | 默认不传递或传递空值,则获取所有港股的实时交易数据。支持传递单个港股股票代码进行筛选,具体值参见 港股股票代码参数枚举页面 |
{
"symbol": "00012"
}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",
"description": "接口返回状态码"
},
"StatusDescription": {
"type": "string",
"description": "接口返回状态说明"
},
"ResponseDateTime": {
"type": "string",
"description": "接口数据返回时间"
},
"DataTotalCount": {
"type": "integer",
"description": "此条件下的总数据量,一般用于分页计算"
}
}
},
"Data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Symbol": {
"type": "string",
"description": "港股股票代码"
},
"StockName": {
"type": "string",
"description": "股票名称"
},
"Latest": {
"type": "number",
"description": "最新价,单位:港元"
},
"ChangeAmount": {
"type": "number",
"description": "涨跌额,单位:港元"
},
"ChangePercent": {
"type": "number",
"description": "涨跌幅,单位:%"
},
"Open": {
"type": "number",
"description": "开盘价,单位:港元"
},
"High": {
"type": "number",
"description": "最高,单位:港元"
},
"Low": {
"type": "number",
"description": "最低,单位:港元"
},
"PreClose": {
"type": "number",
"description": "昨收价,单位:港元"
},
"TradingVolume": {
"type": "integer",
"format": "int64",
"description": "成交量,单位:股"
},
"TradingAmount": {
"type": "number",
"description": "成交额,单位:港元"
}
},
"required": [
"Symbol",
"StockName",
"Latest",
"ChangeAmount",
"ChangePercent",
"Open",
"High",
"Low",
"PreClose",
"TradingVolume",
"TradingAmount"
],
"description": "按既有顺序返回的行情对象数组。"
},
"description": "按既有顺序返回的行情对象数组。"
}
}
}application/json{
"type": "object",
"properties": {
"DataStatus": {
"type": "object",
"required": [
"RequestParameter",
"StatusCode",
"StatusDescription",
"ResponseDateTime",
"DataTotalCount"
],
"properties": {
"RequestParameter": {
"type": "string",
"description": "请求参数,一般用于调试"
},
"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": "请求参数,一般用于调试"
},
"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 |