mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
* Update treasury command to get directly from fed * test * Fix the codespell lint * Mypy * help text * mypy + askobb update * pylint now * Fix #5190 * Fix report * ruff life * Fix #5172 * economy report titles * Make the chart nicer
20 lines
963 B
Plaintext
Vendored
20 lines
963 B
Plaintext
Vendored
parent_command:economy
|
|
usage: treasury [-m MATURITY] [--show] [--freq {annually,monthly,weekly,daily}] [-t TYPE] [-s START_DATE] [-e END_DATE]
|
|
|
|
Obtain US treasury rates
|
|
|
|
optional arguments:
|
|
-m MATURITY, --maturity MATURITY
|
|
The preferred maturity which is dependent on the type of the treasury (default: 10y)
|
|
--show Show the maturities available for every instrument. (default: False)
|
|
-s START_DATE, --start START_DATE
|
|
The start date of the data (format: YEAR-MONTH-DAY, i.e. 2010-12-31) (default: 1934-01-31)
|
|
-e END_DATE, --end END_DATE
|
|
The end date of the data (format: YEAR-DAY-MONTH, i.e. 2021-06-02) (default: 2023-06-02)
|
|
|
|
|
|
Examples:
|
|
- To plot 10-year nominal U.S. treasuries with monthly frequency: economy/treasury
|
|
- For plotting 5-year U.S. treasury rates: economy/treasury -m 5y
|
|
- To show the maturities available for every instrument: economy/treasury --show
|