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.9.tar.gz (3.2 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.9-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ustreasurycurve-0.0.9.tar.gz
  • Upload date:
  • Size: 3.2 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.9.tar.gz
Algorithm Hash digest
SHA256 6c020c4cc80b15c1377506720081a7886aada0bf93324fe09ebf3ad3bc18bc35
MD5 8867be4c10f76c42b6dcafcdc5f76acd
BLAKE2b-256 dc094c5b5ad011a7f0873eadaa66d5f95636e3832419757bc35e9c01f32d6445

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ustreasurycurve-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e4d544017cb7ef0f5987a001ccfcf6da5bc057513dc6dcd022b52420cf66dd42
MD5 1a6c2f0ca46a76f0966b7bb4b7d35eea
BLAKE2b-256 4ea6f3915e1b6b8e9672d5cbb2866fb5bdd13d5f6c72defaecedda9693972b4f

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