Economics

Treasury Yields

Daily US Treasury par yield curve rates for 12 maturities from 1 month to 30 years, from 1990 (official US government data). Daily, weekly or monthly rows with date filters and paging.

All filters are optional. The answer is {as_of, frequency, maturities, total, limit, offset, order, rows, about}.

get/treasury-yields

Request

  • Base URL: https://api.dataporium.io
  • URL: https://api.dataporium.io/treasury-yields
  • Auth: API key in query parameter apikey

Query parameters

maturitystring

Maturities, comma-separated: 1m, 2m, 3m, 6m, 1y, 2y, 3y, 5y, 7y, 10y, 20y, 30y (default all)

date_fromstring

First date (YYYY-MM-DD)

date_tostring

Last date (YYYY-MM-DD)

frequencystring

daily (default), weekly or monthly

orderstring

asc or desc by date (default desc)

limitinteger

Rows per page, 1 to 5000 (default 100)

offsetinteger

Rows to skip, for paging

Response

Successful response (JSON).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.