margin_show
Daily margin-trading (融资融券) series for one A-share: financing balance / gross buy / repayment / net buy, short-sell and short balance (shares and CNY), total balance, day-over-day change. T+1 — the latest row is normally the previous trading day (in backtests visible_date = trade_date + 1). ⚠️ financing_buy_cny is GROSS (includes round-trips) — judge direction by financing_net_buy_cny only; short side likewise by the change in short_balance_shares. ⚠️ null = not published / not derivable (Shenzhen and Beijing publish no repayment), not zero. ⚠️ financing_balance_chg_* is versus prev_trade_date — check it is adjacent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "margin_show"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD. Must be given together with `from`. | |
| _jq | No | JMESPath,对 data 求值(写 items[*].id) | |
| code | Yes | Canonical A-share code (e.g. SSE:600519) | |
| days | No | Look-back window in calendar days (1-250, default 60). Ignored when from/to given. | |
| from | No | Start date YYYY-MM-DD. Must be given together with `to`. | |
| _spill | No | true=全量落盘,只回摘要与取数地址 | |
| _fields | No | 逗号分隔的直接字段;有 items 时投影每行,否则投影 data;外层字段或嵌套结构用 _jq | |
| _intent | No | 用户原问题一句话,仅分析用,可留空 | |
| _max_bytes | No | 响应字节上限,默认约 50 KB | |
| _max_bytes_mode | No | 正文超限处理,默认 truncate 保留前缀 |