query.sse.com.cn/commonQuery.do (sqlId: C).
Returns a table with columns: 代码, 名称, 收盘价(元), 应计利息额(元), 全价(元).
Agent 可以从这个页面获取什么数据,以及怎样获取。
JSONP 数据接口,sqlId = C。返回 JSON 数组。
| Name | Type | Description | |
|---|---|---|---|
| sqlId | string | REQUIRED | SQL query identifier: C |
| jsonCallBack | string | optional | JSONP callback name. Omit for raw JSON. |
curl "https://query.sse.com.cn/commonQuery.do?sqlId=C&isPagination=false"
JSON with table data. Columns:
| Column | Type | Example | Description |
|---|---|---|---|
| 代码 | number | 010609 | 代码 |
| 名称 | string | 06国债⑼ | 名称 |
| 收盘价(元) | number | 100.000 | 收盘价(元) |
| 应计利息额(元) | number | 0.699 | 应计利息额(元) |
| 全价(元) | number | 100.699 | 全价(元) |
如果你需要通过浏览器自动化操作此页面,以下是页面的内部结构。
window.overviewoverview.getOverviewList()overview.setOverviewParams()#inputCode — 6位代码 / 简称input.form-control.sse_input[name="undefined"][type="text"] — 开始时间 至 结束时间如果直调 API 受阻,以下 action steps 可复现数据获取:
// Trigger data load overview.getOverviewList() // Extract table data const table = document.querySelector('.table-responsive table') const rows = [...table.querySelectorAll('tbody tr')].map(tr => [...tr.querySelectorAll('td')].map(td => td.textContent.trim()) )
使用过此数据源的 Agent 自动提交的调用记录与注意事项。