Skip to main content

Pulls all available daily real and nominal yield curves from the US Treasury's website

Project description

USTreasuryCurve

This code pulls in all available nominal and real yield curves from the US Treasury's website into a Pandas dataframe. You can specify a start and/or end date if you want. The nominal rates start on January 2, 1990 and the real rates begin on January 2, 2003. The US Treasury updates these yields daily.

Install package

pip install ustreasurycurve

Usage

import ustreasurycurve as ustcurve

Pull in all available US Treasury curve data

ustcurve = ustcurve.nominalRates()

Pull in nominal US Treasury curve between two dates

ustcurve = ustcurve.nominalRates('2010-06-30', '2022-06-30')

Pull in real US Treasury curve starting at a date

ustrcurve = ustcurve.realRates('2010-06-30')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ustreasurycurve-0.0.10.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ustreasurycurve-0.0.10-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ustreasurycurve-0.0.10.tar.gz.

File metadata

  • Download URL: ustreasurycurve-0.0.10.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.4

File hashes

Hashes for ustreasurycurve-0.0.10.tar.gz
Algorithm Hash digest
SHA256 4bf7bd3bed58d520c0613f1f7481550c31f9d1bc51ce668300856d6907e30dfb
MD5 b03404fe16f8d2e3d464785ef4a913a5
BLAKE2b-256 36c575b33fea00b48dfffad0c2003dd8968b151aab89724f58853e1584159ef9

See more details on using hashes here.

File details

Details for the file ustreasurycurve-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for ustreasurycurve-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 a201205db651d09ca3d491af7c2ccf4186ea11eb74208d6a614bb8081361b1f1
MD5 41cf3b77d00e0db6a5afec8cc624b8e1
BLAKE2b-256 28425784c2c2598d612a8356e22c858549a5f45ab979421972e97781d0694205

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page