debt_to_penny
Get the total public debt outstanding, to the penny, for each business day.
Examples
from openbb import obb
obb.ustreasury.debt_to_penny(provider='us_treasury')
# Get the debt for a specific date range.
obb.ustreasury.debt_to_penny(start_date='2025-01-01', end_date='2025-06-30', provider='us_treasury')
Parameters
- standard
- us_treasury
start_date: date | None | str
Start date of the data, in YYYY-MM-DD format. Data begins 1993-04-01. When None, defaults to the trailing 365 days rather than the full history; set it explicitly to reach further back.
end_date: date | None | str
End date of the data, in YYYY-MM-DD format.
Returns
results: DebtToPenny
Serializable results.
provider: str | None
Provider name.
warnings: Optional[list[Warning_]]
List of warnings.
chart: Optional[Chart]
Chart object.
extra: dict[str, Any]
Extra info.
Data
- standard
- us_treasury
date: date | str
The date of the data.
total_public_debt_outstanding: float
Total public debt outstanding, in dollars, to the penny.
debt_held_public: float | None
Debt held by the public, in dollars. Excludes Federal Financing Bank securities.
intragovernmental_holdings: float | None
Intragovernmental holdings, in dollars. Includes Federal Financing Bank securities.