Skip to content

Latest commit

 

History

History
78 lines (61 loc) · 5.16 KB

source_notes.md

File metadata and controls

78 lines (61 loc) · 5.16 KB

source notes

Sibling inputs

offrun reads these sibling outputs:

  • tdcladder: maturity/liquidity ladder context and TRACE-turnover precedent surfaces.
  • buycurve: Treasury issuance composition, bill share, weighted-average maturity, and maturity context.
  • liqsub: TGA, reserves, MMFs, ON RRP, and broader liquidity-plumbing diagnostics.
  • rowflow: optional rest-of-world sidecar only when useful for interpretation.

The source contracts live in config/source_contracts.yml. offrun validate-sibling-sources --sibling-root .. --strict checks that required sibling artifacts exist and have the expected columns. offrun copy-sibling-outputs --sibling-root .. --overwrite copies them into ignored data/imported/ paths.

Primary public sources

The real backend can download and normalize FiscalData buyback operations with offrun download-fiscaldata-buybacks or as part of offrun prepare-real-inputs --download-buybacks. The public sources are:

  • FiscalData Treasury Securities Buybacks dataset for operation-level buyback data.
  • TreasuryDirect buyback announcements/results links exposed through FiscalData for operation notices and results cross-checks.
  • FINRA TRACE Treasury aggregate statistics only at the public aggregate level.
  • New York Fed Primary Dealer Statistics for weekly positions, transactions, financing, and fails.
  • H.15 / GSW rates only as optional controls.

Real backend inputs

offrun prepare-real-inputs --sibling-root .. --download-buybacks writes ignored normalized sibling and buyback inputs under data/imported/. make real-package then runs offrun download-finra-trace-aggregates --frequency daily, which writes ignored public FINRA daily XLSX files under data/raw/finra/daily/, converts them into data/raw/finra/trace_treasury_aggregates.csv, and imports the direct TRACE context into data/imported/trace/trace_treasury_aggregates.csv.

  • FiscalData buyback operations into data/imported/buybacks/buyback_operations.csv.
  • FiscalData/TreasuryDirect source-link status into output/tables/buyback_source_reconciliation.csv during panel construction.
  • tdcladder bucket-level Treasury stock/liquidity context into data/imported/tdcladder/monthly_ladder_panel.csv.
  • Public FINRA daily Treasury aggregate files into data/imported/trace/trace_treasury_aggregates.csv, preserving aggregate maturity and on/off-run fields for Nominal Coupons and TIPS. If direct FINRA files are unavailable, the backend falls back to tdcladder public aggregate TRACE turnover in the same normalized path.
  • buycurve issuance/maturity context into data/imported/buycurve/monthly_issuance_maturity_context.csv.
  • buycurve cleaned New York Fed primary-dealer positions into data/imported/dealer/primary_dealer_statistics.csv.
  • buycurve raw New York Fed primary-dealer time series for aggregate Treasury financing and fails into the same dealer context file.
  • liqsub monthly plumbing context into data/imported/liqsub/monthly_liquidity_plumbing.csv.

The normalized imports are local build products, not public repository content.

The generated triage outputs are also local build products. results_triage.csv, pretrend_diagnostics.csv, placebo_diagnostics.csv, evidence_ledger.csv, and offrun_findings_report.md classify rows as descriptive diagnostics only; they do not promote causal language or CUSIP-level liquidity claims.

Public TRACE boundary

Public aggregate TRACE statistics can support descriptive volume or turnover context by broad category, depending on the exact public table used. They do not provide transaction-level or CUSIP-level liquidity evidence. Any production output that uses public aggregate TRACE data must label it as an aggregate proxy.

offrun audit-trace-source-granularity writes output/tables/trace_source_granularity_audit.csv. The audit records that the current real package uses the tdcladder broad aggregate turnover fallback, but FINRA's public daily and monthly Treasury aggregate files advertise remaining maturity and on/off-run groupings for Nominal Coupons and TIPS. offrun download-finra-trace-aggregates --frequency daily downloads the public daily XLSX files, converts them to the package's direct TRACE CSV, and imports them. It still does not remove the CUSIP-level and transaction-level claim boundary.

Dealer statistics boundary

Primary Dealer Statistics are useful for positions, financing, and settlement-fails diagnostics. They are dealer-sector aggregates and should not be described as individual dealer balance sheets. Net-position rows are mapped to maturity buckets where the source series support that mapping; financing and fails rows are aggregate Treasury/TIPS diagnostics, not maturity-bucket-specific observations. output/tables/dealer_source_granularity_audit.csv records that boundary explicitly.