aemo_throttle: Configure request throttling

View source: R/cache.R

aemo_throttleR Documentation

Configure request throttling

Description

Controls the delay between successive NEMweb requests. Defaults to 1 second (half a request per second).

Usage

aemo_throttle(delay = 1)

Arguments

delay

Numeric. Minimum delay between requests in seconds. Internally this becomes httr2::req_throttle(rate = 1/delay).

Value

Invisibly returns the previous value.

See Also

Other configuration: aemo_cache_info(), aemo_clear_cache()

Examples

old <- aemo_throttle(0.5)  # 2 requests per second
aemo_throttle(old)         # restore

aemo documentation built on April 29, 2026, 1:07 a.m.