1
$\begingroup$

Let's say I'd like to find out how much the Fed purchased in US treasury securities in May 2022.

Here's one approach that I've been referred to.

Go to this page on TreasuryDirect:

https://www.treasurydirect.gov/instit/annceresult/press/press_auctionresults.htm

For each item with an 'Auction Date' in May:

enter image description here

Download the PDF and note the SOMA value:

enter image description here

Then add up all these values.

When I did this for May 2022, I get $194b.

Questions

Is there a better approach to getting the total US treasury securities purchased?

$\endgroup$

2 Answers 2

2
$\begingroup$

Using the TreasuryDirect REST API

Example using Windows PowerShell.

Open a PowerShell console.

Run the following, adjusting the dates for your needs. Here I'll select all of May:

$result = Invoke-RestMethod 'http://www.treasurydirect.gov/TA_WS/securities/search?auctionDate=2022-05-01,2022-05-31&format=json'

Get the sum of the somaAccepted property:

($result | Measure-Object -Property somaAccepted -Sum).Sum

What this looks like in the console:

enter image description here

API documentation

Documentation for the API:

https://www.treasurydirect.gov/webapis/webapisindex.htm

$\endgroup$
1
$\begingroup$

Using the Auction Query page

Go to the 'Auction Query' page:

https://www.treasurydirect.gov/instit/annceresult/annceresult_query.htm

enter image description here

Specify the 'Auction Date' range:

enter image description here

Click Show / Hide Columns. Select SOMA Accepted:

enter image description here

Click download as CSV.

Use Excel to sum the SOMA Accepted column:

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.