DOKK / manpages / debian 11 / libfinance-quote-perl / Finance::Quote::USFedBonds.3pm.en
Finance::Quote::USFedBonds(3pm) User Contributed Perl Documentation Finance::Quote::USFedBonds(3pm)

Finance::Quote::USFedBonds - Get US Federal Bond redemption values from http://www.treasurydirect.gov

    use Finance::Quote;
    $q    = Finance::Quote->new();
    %info = $q->fetch('usfedbonds', 'E197001.200606');

Access redemption values for US Federal Bonds from the treasury.

Bonds should be identified in the following manner:

SERIES(1) : I/E/N/S

ISSUEDATE(6) : YYYYMM

SEPERATOR(1) : "."

REDEMPTIONDATE(6) : YYYYMM

e.g. E200101.200501

price, date, isodate

Use of www.treasurydirect.gov is governed by any terms & conditions of that site.

Finance::Quote is released under the GNU General Public License, version 2, which explicitly carries a "No Warranty" clause.

2021-03-28 perl v5.32.1