Finance...:USBonds(3)
π Finance::Quote::USBonds(3) β the Perl doc, but make it make sense π
okay bestie, so this is a page from the User Contributed Perl Documentation β literally we're pulling bond quotes from the US Treasury. Let me walk you through it π«Ά
β¨ NAME β¨
Finance::Quote::USBonds β the module that grabs you quotes for US Federal Bonds in the E, EE, or I series, straight from the Treasury Direct website: http://www.treasurydirect.gov. slay π
π SYNOPSIS π
here's the whole vibe, copy-paste ready:
use Finance::Quote ;
$q = Finance::Quote->new ;
%quote = $q->fetch ( "usbonds", "\EE-100-1993-10" ) ;
yes that backslash in "\EE-100-1993-10" is really there in the original β keep it, don't "fix" it, iykyk π
π¦ DESCRIPTION π¦
so this module gets quote info from the Treasury Direct website, www.treasurydirect.gov. you hand it a bond symbol, it hands you back the current prices for that bond. that's the whole deal, and honestly? iconic β¨
the symbol nomenclature goes like this:
SS-DDDDD-YYYY-MM
where, in order:
SS= series (EE,E, orI)DDDDD= denominationYYYY= year issuedMM= month issued
for example: 'EE-500-1988-02' π
and here's the part where it actually checks your work, bestie: the symbols you supply get checked for format and validity. like, for example, bonds were only issued after 1942, and only the specific denominations issued for EE bonds are allowed, etc. so don't try to be cute with it π
π LABELS RETURNED π
these are the labels that may be returned by Finance::Quote::USBonds:
exchange method source symbol currency date isodate version price
nine of them, all present and accounted for, we don't skip π
π SEE ALSO π
- Treasury bond value web interface β
http://www.treasurydirect.gov/BC/SBCPrice Finance::Quoteβ the parent module, the main character energy of this whole thing π
πΈ AUTHOR πΈ
Kenneth J. Farley β thank you for your service π«Ά
ngl that's the whole page β no options, no flags, no environment variables, no exit statuses. just symbols, labels, and one very specific backslash. periodt π
okay that's a wrap! this page is from perl v5.32.1, dated 2026-10-26, filed under User Contributed Perl Documentation β stay hydrated and go buy a savings bond π§π
π¦ where this page comes from
- epel 9: perl-Finance-Quote 1.7200-1.el9 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms