Files
OpenBB/openbb_platform/providers/government_us
dlee-bq f9b667816a fix(deps): resolve Dependabot security alerts (#7838)
* fix(deps): bump tornado, opentelemetry-api, soupsieve, dnspython, joserfc in uv.lock files

- tornado 6.5.10 -> 6.6.1
- opentelemetry-api 1.45.1 -> 1.45.2
- soupsieve 3.0.3 -> 4.1 (Python >= 3.11.5)
- dnspython 2.9.0 -> 2.9.2
- joserfc 1.7.5 -> 1.7.6

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>

* fix(desktop): bump glob, minimatch, seroval

- glob 13.0.6 -> 14.0.6
- minimatch 10.2.6 -> 11.0.8
- seroval 1.6.9 -> 1.8.1
- raise the package.json floors to the patched versions

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>

* fix(desktop): bump zip to 9.5.1 via tauri-cli and tauri-plugin-updater

- tauri-cli 2.12.2 -> 2.12.4
- tauri-plugin-updater 2.14.0 -> 2.14.1
- zip 2.4.2, 4.6.1, 8.6.0 -> 9.5.1

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>

* fix(deps): raise requires-python to >=3.11.5

- soupsieve 3.x and 4.x need Python >= 3.11.5; the 2.10 fork stayed vulnerable for 3.11.0-3.11.4
- 39 pyproject.toml files (38 projects + cookiecutter template)
- relock all 38 uv.lock files: soupsieve 2.10 fork gone, tomli and async-timeout dropped

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>

---------

Signed-off-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>
Co-authored-by: dlee-bq <325002271+dlee-bq@users.noreply.github.com>
2026-11-28 20:39:03 +00:00
..
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00

OpenBB US Government Provider Extensions

This package integrates US Government data sources into the OpenBB Platform, organized as one provider per federal agency. A single install:

pip install openbb-government-us

registers three providers - congress_gov, us_treasury, and usda - plus two API routers, obb.uscongress and obb.ustreasury. Every endpoint uses public, keyless data; no API keys or registration are required anywhere.

Congress

Provider: congress_gov - Router: obb.uscongress

Legislative data for the U.S. Congress, sourced from GovInfo bulk data, the GovInfo link service, the unitedstates dataset, and Voteview.

Coverage:

  • Bills: lists, metadata, summaries, and full text (obb.uscongress.bills, bill_info, bill_text)
  • Enacted laws, public and private (obb.uscongress.laws)
  • Amendments: lists, details, and text (obb.uscongress.amendments, amendment_info, amendment_text)
  • House and Senate calendars (obb.uscongress.calendars)
  • Congressionally mandated reports (obb.uscongress.mandated_reports)
  • Committees and committee documents (obb.uscongress.committee_info, committee_documents)
  • Members, their sponsored legislation, and roll-call votes (obb.uscongress.members, member_legislation, member_votes)
  • Full-text search across legislative documents (obb.uscongress.search)
  • Document download URLs for bills, laws, amendments, calendars, reports, and committee documents (the *_urls endpoints)

Treasury

Provider: us_treasury - Router: obb.ustreasury

Data from the U.S. Department of the Treasury via TreasuryDirect, FedInvest, and the FiscalData API.

TreasuryDirect and FedInvest, served through the standard fixed income router:

  • Auction search - announcements and results of marketable securities (obb.fixedincome.government.treasury_auctions)
  • End-of-day prices for marketable Treasury securities (obb.fixedincome.government.treasury_prices)

FiscalData API datasets, served through obb.ustreasury:

  • Debt to the penny - total public debt outstanding for each business day (obb.ustreasury.debt_to_penny)
  • Daily Treasury Statement - all 9 tables of cash and debt operations (obb.ustreasury.daily_statement)
  • Marketable securities scheduled for announcement or auction in the coming week (obb.ustreasury.upcoming_auctions)
  • Historical auction announcements and results back to 1979 (obb.ustreasury.auction_results)
  • Treasury Bulletin PDO-1 - regular weekly bill offering results (obb.ustreasury.weekly_bill_offerings)

USDA

Provider: usda

Data from the U.S. Department of Agriculture, served through the standard commodity router.

  • Foreign Agricultural Service PSD Online - Production, Supply and Distribution reports and time series (obb.commodity.psd_report, obb.commodity.psd_data)
  • Weekly Weather and Crop Bulletin - publication listings and PDF downloads from ESMIS (obb.commodity.weather_bulletins, obb.commodity.weather_bulletins_download)

Usage

from openbb import obb

bills = obb.uscongress.bills(congress=118, bill_type="s", provider="congress_gov")
debt = obb.ustreasury.debt_to_penny(start_date="2025-01-01", end_date="2025-06-30")
auctions = obb.ustreasury.auction_results(security_type="bond", start_date="2020-01-01")
corn = obb.commodity.psd_data(commodity="corn", provider="usda")

See the OpenBB documentation and reference for breakdowns of each endpoint.