Risk-Free Rate

The risk-free rate is the return on an investment that carries no risk of default: what an investor earns without taking any risk, in practice the yield on short or long government bonds of a country that borrows in its own currency.

It is the starting point of most measures of risk and return. Tobin (1958) added a riskless asset to the choice between risky ones, and in the capital asset pricing model of Sharpe (1964) every expected return is the risk-free rate plus a premium for risk. Performance is judged by what an asset earns above it, the excess return, as in the Sharpe (1966) ratio, and option and bond prices discount with it.

Which rate counts as risk-free depends on the horizon. A three-month Treasury bill is the closest to riskless over a short holding period, while a long-term investor or a valuation of distant cash flows uses the yield of a longer bond, which itself moves with rates.

The formula for the daily risk-free rate is as follows:

\[\text{Daily Risk-Free Rate} = (1 + \text{Annual Risk-Free Rate})^{1/252} - 1\]

Where the Annual Risk-Free Rate is the Treasury yield of the day and 252 the number of trading days in a year.

The Finance Toolkit uses a US Treasury yield as its risk-free rate: the 10-year yield unless the Toolkit is set to the 13-week, 5-year or 30-year one. The performance, risk and models modules take it per day, or as the average of the daily yields within a week, month, quarter or year, which is closer to what a holder earned than the yield at the end of the period. The option models convert it from its semi-annual quote to continuous compounding. Outside the United States the EIOPA risk-free curves give the rates of the euro and about twenty other currencies.

Example · AAPL · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.get_treasury_data(period="yearly")["Close"]

Which returns:

Item 13 Week 5 Year 10 Year 30 Year
2021 0.0003 0.0126 0.0151 0.019
2022 0.0426 0.04 0.0388 0.0398
2023 0.0518 0.0384 0.0387 0.0402
2024 0.0421 0.0438 0.0457 0.0479
2025 0.0355 0.0372 0.0416 0.0484

References

  • Paper Tobin, J. (1958). “Liquidity Preference as Behavior Towards Risk.” The Review of Economic Studies, 25(2), 65-86.
  • Paper Sharpe, W.F. (1964). “Capital Asset Prices: A Theory of Market Equilibrium under Conditions of Risk.” The Journal of Finance, 19(3), 425-442.
  • Paper Sharpe, W.F. (1966). “Mutual Fund Performance.” Journal of Business, 39(S1), 119-138.

Updated:

Share