get_markets_margin_interest
Retrieve per-stock margin balance (long/short) and loan-to-value ratio for Japanese stocks. Analyze margin trading interest and market sentiment.
Instructions
Per-stock margin balance: 買残・売残・貸借倍率 (信用残). Standard+ only.
Use for 信用残, 買い残, 売り残, 貸借倍率, margin loan/short balance. For margin trading restrictions (追証・増担保規制), use get_markets_margin_alert instead.
When called with no parameters, returns a compact summary by default
(detail=False): {count, latest_date, source, note}. Pass detail=True
to retrieve full row data for the latest available date. Specifying any
filter parameter (code, date, etc.) always returns full data.
[Supported plans] Standard / Premium
Args: code: Stock code (5 digits, e.g. 27800) date: Date (YYYYMMDD or YYYY-MM-DD) date_from: Start date for range query date_to: End date for range query detail: When True and no filter params given, return full row data instead of summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| date | No | ||
| date_from | No | ||
| date_to | No | ||
| detail | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||