Ashares Margin Financing
ashares_margin_financingChina A-share margin financing and securities lending balance (融资融券余额/两融余额), the market-wide leverage gauge: aggregate financing balance (融资余额, money borrowed to buy stock), securities-lending balance (融券余额, shares borrowed to short), and their combined total (融资融券余额), for the Shanghai (SSE) and Shenzhen (SZSE) exchanges separately and combined, with day-over-day change. Answers '融资余额', '两融余额', '融资融券余额', 'margin financing balance', 'China A-share margin debt', 'how much margin debt is in the A-share market', 'margin balance day over day change'. Pass a 6-digit SZSE code (0/3/159-prefixed) in symbol for that stock's own 融资余额/融券余额/融资融券余额 instead of the market aggregate, SSE (6xxxxx) per-stock detail is not available via any verified keyless route, so a SH code returns a clear not_available message rather than silently substituting. Margin data publishes T+1 (today's figures appear tomorrow morning); a request for a day with nothing published yet or a non-trading day (weekend/holiday) automatically falls back to the last trading day that published, and says so. Amounts in CNY (converted from each exchange's native 元/亿元/万元 units and labelled). HISTORY: pass start_date/end_date or days (and interval=month_end for one row per month) for a dated series of SSE, SZSE and combined financing balances back to 2010-03-31, each row with the balance as a percent of float market value (e.g. 'A-share margin financing balance, last 6 month-ends'). Source: SSE margin trading figures via Eastmoney per-exchange margin history (keyless) + SZSE margin trading summary (keyless).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ashares_margin_financing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Trading day as YYYY-MM-DD or YYYYMMDD (default: most recent day with published data). Margin data is T+1, so "today" usually has nothing yet. | |
| days | No | HISTORY MODE alternative to start_date: the most recent N trading days (1-250). With interval month_end, N is a CALENDAR-day window back from end_date (1-7300): days:90 returns the month-ends inside the last 90 days. To count months use `months`. | |
| months | No | HISTORY MODE, interval month_end only: the most recent N month-ends (1-240). Ignored for daily. | |
| symbol | No | Optional 6-digit SZSE code (0/3/159-prefixed, e.g. "000001" 平安银行) for that stock's own margin balance instead of the market-wide aggregate. SSE codes (6xxxxx) are not supported here, no verified keyless per-stock route exists. | |
| end_date | No | HISTORY MODE: last day of the series (default: most recent published day). | |
| interval | No | HISTORY MODE: "daily" (default; at most 250 rows) or "month_end" (the last published trading day of each calendar month; at most 240 rows). | |
| start_date | No | HISTORY MODE: first day of a series, YYYY-MM-DD or YYYYMMDD. Returns one dated row per trading day (or per month, see interval) with SSE, SZSE and combined financing balances, ending at end_date. |