query_bond
Fetch China onshore bond data—yield curves, credit bond issuance info, or exchange daily quotes—and save results as a CSV file to a specified path.
Instructions
Query China onshore bonds. Output is written to file_path as CSV. kind=yield_curve: 国债到期收益率曲线 (bond_china_yield). kind=issue_info: 信用债发行信息含评级 (bond_info_cm). kind=credit_daily: 信用债交易所日行情 (bond_zh_hs_daily). 已知限制(akshare免费层无): 中债估值YTM/全价、赎回回售条款详情、剩余期限、城投发行人财务。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Query type | |
| symbol | No | Exchange bond symbol e.g. sh019623 (credit_daily) | |
| end_date | No | End date YYYY-MM-DD (yield_curve/credit_daily) | |
| bond_code | No | Bond code e.g. 2180495.IB or 2180495 (issue_info, mutually exclusive with bond_issue) | |
| file_path | Yes | Output CSV file path | |
| bond_issue | No | Issuer name e.g. 成都东方广益 (issue_info, returns latest bond by issue date, mutually exclusive with bond_code) | |
| start_date | No | Start date YYYY-MM-DD (yield_curve/credit_daily) |