Spiral gives your agent every tool with one account. Browse the tools →

Windsurf · Finance

How to Use Treasury buyback security details in Windsurf

Returns Treasury buyback results by CUSIP, including coupon, maturity, accepted par amount, and weighted average accepted price. Use it to identify which securities Treasury purchased and how purchases were distributed.

Prompts to try with Treasury buyback security details in Windsurf

Copy an example into Windsurf, or ask in your own words.

Use Treasury buyback security details for May 29, 2024 to create a table of CUSIPs, coupons, maturities, and accepted par in this project.

Treasury buyback security detailsWindsurf
Try asking
  • Use Treasury buyback security details for CUSIP 91282CAB7 during 2024 to create a dated purchase history and total the accepted par.

  • Use Treasury buyback security details for May 29, 2024 to add a purchase-concentration chart showing each purchased CUSIP's share of accepted par.

  • Use Treasury buyback security details to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Treasury buyback security details and tell me what changed since last week.

How to set up Treasury buyback security details in Windsurf

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Treasury buyback security details

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "treasury-fiscal-data/buybacks/securities",
        "input": {
          "sort": "<sort>"
        }
      }'

Then paste one of the prompts above: Windsurf finds Treasury buyback security details on Spiral, shows the price and runs it.

Treasury buyback security details providers and prices

Spiral runs Treasury buyback security details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Treasury Fiscal Data · Buyback securities
treasury-fiscal-data/buybacks/securities

Settings you can ask for

Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page[size]a number up to 10000100

Rows per page, 1 to 10,000. The default of 100 is fine for a summary series and far too small for a full auction history.

Page[number]a number1

Page number, 1-indexed. meta.total-pages in the response says how many there are.

Every API field of Treasury Fiscal Data · Buyback securities is on its tool page: open its card above.

What can you do with Treasury buyback security details in Windsurf?

Build a Treasury buyback report that connects operation totals to the securities purchased. A coding agent can turn the returned amounts into numeric columns and add reconciliation checks to your project.

Write an operation results brief

Summarize total par offered and accepted for a completed operation, then identify the securities that account for the largest purchases.

Build a monthly buyback history

Calculate monthly accepted par from operation totals or security-level purchases. Use the results to compare Treasury's activity across months.

Reconcile purchases to published totals

Sum accepted par across securities for an operation and compare it with the reported operation total. Flag differences for review.

Compare individual operations

Rank completed operations by accepted par amount. Add security-level detail to explain which purchases drove the largest totals.

Maintain a buyback results dashboard

Show operation totals over time and let readers inspect the CUSIPs, maturities, and accepted amounts behind each result.

Measure purchase concentration

Calculate each purchased CUSIP's share of an operation's accepted par and identify operations dominated by a small number of securities.

Check a market commentary claim

Verify a statement about Treasury's buyback volume against operation totals, then inspect security results when the statement names particular issues.

Questions about Treasury buyback security details in Windsurf

Can Windsurf use Treasury buyback security details?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Treasury buyback security details like any built-in tool.

How much does Treasury buyback security details cost in Windsurf?

$0.001746 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.

Do I need an Alexandria account to use Treasury buyback security details in Windsurf?

No. Spiral runs Treasury buyback security details on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Treasury buyback security details in Windsurf?

About two minutes: add the server, then sign in, then check it.

Does Windsurf wait while Treasury buyback security details runs?

Treasury buyback security details runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.

How far back does Treasury's buyback archive go?

The archive begins on March 9, 2000. As checked on November 20, 2026, its latest listed operation date was November 19, 2026.

Why are there no buybacks between 2003 and 2013?

Treasury states that no buyback operations occurred during those years. That gap reflects the operation history.

How quickly are buyback results published?

Treasury says detailed information for each eligible security is published later on operation day. Fiscal Data lists updates as as needed, so the dataset does not promise a fixed publication delay.

Which Treasury securities does this cover?

Treasury identifies off-the-run nominal coupon securities and Treasury Inflation-Protected Securities as the securities it buys back. The archive describes Treasury buyback activity within that scope.

Can I reuse Treasury buyback data in a commercial report?

Yes. Fiscal Data explicitly permits copying, adapting, redistributing, and using its data for commercial and noncommercial purposes.

Get started

Start using Treasury buyback security details in Windsurf

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Windsurf:

Set up Windsurf

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options