% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boe_sonia.R
\name{boe_sonia}
\alias{boe_sonia}
\title{Download SONIA interest rate}
\source{
\url{https://www.bankofengland.co.uk/boeapps/database/}
}
\usage{
boe_sonia(
  from = "1997-01-02",
  to = Sys.Date(),
  frequency = c("daily", "monthly", "annual"),
  cache = TRUE
)
}
\arguments{
\item{from}{Date or character (YYYY-MM-DD). Start date. Defaults to
\code{"1997-01-02"}.}

\item{to}{Date or character (YYYY-MM-DD). End date. Defaults to today.}

\item{frequency}{Character. One of \code{"daily"} (default), \code{"monthly"}
(monthly average), or \code{"annual"} (annual average).}

\item{cache}{Logical. Use cached data if available (default \code{TRUE}).}
}
\value{
A data frame with columns:
\describe{
\item{date}{Date. Observation date.}
\item{rate_pct}{Numeric. SONIA rate (percent).}
}
}
\description{
Downloads the Sterling Overnight Index Average (SONIA), the risk-free
reference rate for sterling markets. Available daily from January 1997.
}
\examples{
\donttest{
op <- options(boe.cache_dir = tempdir())
boe_sonia(from = "2020-01-01")
options(op)
}

}
\seealso{
Other interest rates: 
\code{\link{boe_bank_rate}()},
\code{\link{boe_curve}()},
\code{\link{boe_yield_curve}()}
}
\concept{interest rates}
