get_net_debt
Compute net debt from the latest balance sheet using short and long-term loans, bonds payable, noncurrent liabilities due within one year, minus monetary funds. Returns breakdown and report date.
Instructions
Compute net debt from the latest balance sheet (conservative upper bound).
net_debt = SHORT_LOAN + LONG_LOAN + BOND_PAYABLE + NONCURRENT_LIAB_1YEAR - MONETARYFUNDS
NONCURRENT_LIAB_1YEAR is a CN-GAAP aggregate bucket containing both long-term-debt current portion (interest-bearing) and lease-liability / long-payable current portions (not interest-bearing); the breakdown is not exposed by EastMoney. For lease-heavy or zero-leverage firms the returned net_debt is overstated by the non-interest portion of this bucket.
Data source: EastMoney via akshare. Returns net_debt value, component breakdown, and the report date of the balance sheet used.
Args: code: Stock code in baostock format, e.g. 'sh.600519'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |