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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bf7bd3bed58d520c0613f1f7481550c31f9d1bc51ce668300856d6907e30dfb
|
|
| MD5 |
b03404fe16f8d2e3d464785ef4a913a5
|
|
| BLAKE2b-256 |
36c575b33fea00b48dfffad0c2003dd8968b151aab89724f58853e1584159ef9
|
File details
Details for the file ustreasurycurve-0.0.10-py3-none-any.whl.
File metadata
- Download URL: ustreasurycurve-0.0.10-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a201205db651d09ca3d491af7c2ccf4186ea11eb74208d6a614bb8081361b1f1
|
|
| MD5 |
41cf3b77d00e0db6a5afec8cc624b8e1
|
|
| BLAKE2b-256 |
28425784c2c2598d612a8356e22c858549a5f45ab979421972e97781d0694205
|