Scroll to navigation

Finance::Quote::USFedBonds(3pm) User Contributed Perl Documentation Finance::Quote::USFedBonds(3pm)

NAME

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

SYNOPSIS

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

DESCRIPTION

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

LABELS RETURNED

price, date, isodate

TERMS & CONDITIONS

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.

2022-07-10 perl v5.34.0