上市与退市事件
数据集标识:stock.listing_events;证券对象标识示例:XSHE:000001
股票挂牌开始和终止上市生命周期事件。当前发布范围仅包含已批准当前证券的挂牌开始事件;历史退市事件将在独立证据完成后追加。
接口
| 用途 | 方法与路径 |
|---|---|
| 查询数据 | POST /v1/datasets/stock.listing_events/query |
| 契约与当前发布 | GET /v1/datasets/stock.listing_events |
| 准备批量快照 | POST /v1/datasets/stock.listing_events/preparations |
请求参数
可在请求体 where 中作为 field 使用的筛选参数,名称保持契约原名。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
asset_id | string | 否 | 筛选一个或多个标的标识(<场所码>:<代码>)。 |
security_code | string | 否 | 筛选一个或多个证券代码。 |
start_date | date | 否 | 按生效日期查询的开始日期,包含该日。 |
end_date | date | 否 | 按生效日期查询的结束日期,包含该日。 |
返回字段
列名保持契约原名,可直接用于 select、where 与结果行。
| 字段名 | 中文名称 | 类型 | 可空 | 说明 |
|---|---|---|---|---|
asset_id | 标的标识 | string | 否 | 与市场无关的标的标识,格式为 <场所码>:<代码>,场所码为 ISO 10383 MIC,例如 XSHE:000001。 |
security_code | 证券代码 | string | 否 | 展示别名:带市场后缀的证券代码,例如 000001.SZ;由 asset_id 换算,不作业务键。 |
market | 市场 | string | 否 | 标的挂牌场所所在的市场,ISO 3166-1 alpha-2 代码,例如 CN;由 asset_id 的场所导出。 |
event_type | 事件类型 | string | 否 | 挂牌开始或终止上市。 |
effective_date | 生效日期 | date | 否 | 事件在市场规则下生效的日期。 |
announcement_date | 公告日期 | date | 是 | 事件首次公开披露的日期。 |
reason | 事件原因 | string | 是 | 公开披露的事件原因。 |
请求示例
向 https://api.<环境域名>/v1/datasets/stock.listing_events/query 发送 POST 请求(服务地址的替换方式见快速开始),请求头为 Authorization: Bearer <API_KEY> 与 Content-Type: application/json,请求体如下:
{
"select": [
"asset_id",
"security_code",
"event_type",
"effective_date",
"announcement_date",
"reason"
],
"where": [
{
"field": "asset_id",
"op": "eq",
"value": "XSHE:000001"
},
{
"field": "effective_date",
"op": "gte",
"value": "1991-04-03"
},
{
"field": "effective_date",
"op": "lte",
"value": "1991-04-03"
}
],
"page": {
"limit": 1000,
"cursor": null
}
}
响应示例
实际结果随数据更新而变化;data 为空数组表示请求范围内没有可返回的记录。
{
"datasetId": "stock.listing_events",
"fields": [
"asset_id",
"security_code",
"event_type",
"effective_date",
"announcement_date",
"reason"
],
"data": [
{
"announcement_date": null,
"asset_id": "XSHE:000001",
"effective_date": "1991-04-03",
"event_type": "listed",
"reason": null,
"security_code": "000001.SZ"
}
],
"page": {
"nextCursor": null,
"complete": true
}
}