get_source_data_fiscaldata: Retrieve A U.S. Treasury Fiscal Data Table

View source: R/fiscaldata_data.R

get_source_data_fiscaldataR Documentation

Retrieve A U.S. Treasury Fiscal Data Table

Description

Retrieve A U.S. Treasury Fiscal Data Table

Usage

get_source_data_fiscaldata(
  dataset_id,
  endpoint,
  date_col = "record_date",
  key_cols = date_col,
  fields = NULL,
  from = NULL,
  to = NULL,
  page_size = 10000L,
  max_pages = Inf
)

Arguments

dataset_id

Stable local dataset identifier.

endpoint

Fiscal Data endpoint relative to the fiscal-service base URL.

date_col

Source date column.

key_cols

Source columns that uniquely identify observations per date.

fields

Optional source fields to request.

from, to

Optional inclusive date bounds.

page_size

Number of source rows requested per page.

max_pages

Optional page limit for diagnostics.

Value

A typed, table-shaped data.table with source and dataset identity.


investdatar documentation built on Aug. 21, 2026, 5:17 p.m.