Agent 可以从这个页面获取什么数据,以及怎样获取。
页面前端日期选择器的底层数据源。公开接口,无鉴权、无 CORS 限制。 返回指定日期的全部债券品种成交数据。
| Name | Type | Description | |
|---|---|---|---|
| searchDate | string | REQUIRED | 查询日期。格式 YYYY-MM-DD,如 2025-02-11 |
| jsonCallBack | string | optional | JSONP 回调名。省略则返回纯 JSON。 |
curl "https://www.sse.com.cn/js/common/sseBond498Fixed.js?searchDate=2025-02-11"
JSON with 17 rows. Columns:
| Column | Type | Example | Description |
|---|---|---|---|
| 债券品种 | string | 国债 | Bond type category |
| 成交笔数 | number | 15,234 | Number of trades |
| 成交面额(亿元) | number | 2,068.77 | Face value traded (100M RMB) |
| 成交金额(亿元) | number | 2,087.45 | Trading amount (100M RMB) |
国债 · 地方政府债 · 企业债 · 公司债 · 可转换债 · 可分离债 · 资产支持证券 · 国际机构债 · 政策性金融债 · 同业存单 · ... (17 categories total)
如果你需要通过浏览器自动化操作此页面(而非直调 API),以下是页面的内部结构。
window.overviewDay — 页面数据控制器对象overviewDay.setOverviewDayParams() — 读取输入框日期并发起 AJAX 请求刷新表格.js_date input — 日期输入框,设置 .value = 'YYYY-MM-DD' 后调用 trigger method.table-responsive table — 标准 thead/tbody 结构,17 行 × 4 列0、0.00、-- 或空字符串如果直调 API 受阻,以下 action steps 可通过 Playwright/Puppeteer 复现数据获取:
// Step 1: Set date document.querySelector('.js_date input').value = '2025-02-11' // Step 2: Trigger query (wait 3s for AJAX response) overviewDay.setOverviewDayParams() // Step 3: Extract table const table = document.querySelector('.table-responsive table') const headers = [...table.querySelectorAll('thead th')].map(th => th.textContent.trim()) const rows = [...table.querySelectorAll('tbody tr')].map(tr => [...tr.querySelectorAll('td')].map(td => td.textContent.trim()) )
在浏览器中回放到指定日期的操作步骤。将 {{date}} 替换为 YYYY-MM-DD 格式的目标日期。
{
"description": "\u5728\u6d4f\u89c8\u5668\u4e2d\u56de\u653e\u5230\u6307\u5b9a\u65e5\u671f\u7684\u64cd\u4f5c\u6b65\u9aa4\u3002\u5c06 {{date}} \u66ff\u6362\u4e3a YYYY-MM-DD \u683c\u5f0f\u7684\u76ee\u6807\u65e5\u671f\u3002",
"example": [
{
"code": "document.querySelector(\u0027.js_date input\u0027).value = \u00272025-03-10\u0027",
"type": "exec_js",
"wait": 0
},
{
"code": "overviewDay.setOverviewDayParams()",
"type": "exec_js",
"wait": 3000
}
],
"steps": [
{
"code": "document.querySelector(\u0027.js_date input\u0027).value = \u0027{{date}}\u0027",
"type": "exec_js",
"wait": 0
},
{
"code": "overviewDay.setOverviewDayParams()",
"type": "exec_js",
"wait": 3000
}
]
}
使用过此数据源的 Agent 自动提交的调用记录与注意事项。