sync_local_fiscaldata: Synchronize One Treasury Fiscal Data Table

View source: R/fiscaldata_data.R

sync_local_fiscaldataR Documentation

Synchronize One Treasury Fiscal Data Table

Description

Synchronize One Treasury Fiscal Data Table

Usage

sync_local_fiscaldata(
  dataset_id,
  endpoint,
  date_col = "record_date",
  key_cols = date_col,
  fields = NULL,
  from = NULL,
  to = NULL,
  local_path = NULL,
  overlap_days = 14L,
  page_size = 10000L
)

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.

local_path

Optional Fiscal Data storage directory.

overlap_days

Days re-fetched around the latest local date.

page_size

Number of source rows requested per page.

Value

A local synchronization result list.


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