Skip to content

Instantly share code, notes, and snippets.

@jrwren
Created March 31, 2023 13:51
Show Gist options
  • Save jrwren/1f37b77171523f693ea28ffa3064a9fa to your computer and use it in GitHub Desktop.
Save jrwren/1f37b77171523f693ea28ffa3064a9fa to your computer and use it in GitHub Desktop.
a little curl+jq for peeping recent T-Bill auctions
curl 'https://www.treasurydirect.gov/TA_WS/securities/auctioned?format=json&type=Bill' | jq -C '.[]|select(.securityTerm=="17-Week")|{issueDate,highInvestmentRate,highPrice,lowDiscountRate,pricePer100}' | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment