sync_local_quantmod_OHLC: Synchronize Local quantmod OHLC Data

sync_local_quantmod_OHLCR Documentation

Synchronize Local quantmod OHLC Data

Description

Synchronize Local quantmod OHLC Data

Usage

sync_local_quantmod_OHLC(
  ticker,
  label = ticker,
  from,
  to,
  src = "yahoo",
  local_path = NULL,
  max_attempts = 3L,
  retry_delay_seconds = 1,
  fallback_source = NULL,
  fallback_ticker = ticker
)

Arguments

ticker

Market symbol passed to quantmod::getSymbols().

label

Optional label to store in the standardized symbol column.

from

Start date.

to

End date.

src

quantmod source, default "yahoo".

local_path

Optional local storage path.

max_attempts

Maximum bounded attempts for a transient source failure.

retry_delay_seconds

Initial retry delay in seconds; delays use exponential backoff.

fallback_source

Optional explicitly configured fallback provider. Currently supports "eastmoney" for daily OHLC data. For Yahoo sources, a failed dated quantmod request first retries Yahoo's chart endpoint with a bounded range before this external fallback is considered.

fallback_ticker

Optional provider-specific fallback identifier.

Details

An external fallback never replaces a finite existing primary-source OHLC bar. It only fills keys whose local bars are missing or invalid.

Value

A sync result list.


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