# Treasury Auction Results Scraper (`scrapemint/treasury-auction-results`) Actor

Official US Treasury auction results, keyless: bid to cover, high rate, offering and accepted amounts, and the primary dealer, direct and indirect bidder split for every Bill, Note, Bond, TIPS and FRN. Filter by type, date or bid to cover, and see auctions announced before they are held.

- **URL**: https://apify.com/scrapemint/treasury-auction-results.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Business, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$8.00 / 1,000 auction rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Treasury Auction Results Scraper

Every US Treasury auction as clean JSON: **bid to cover, the high rate, and the primary dealer, direct and indirect bidder split** for Bills, Notes, Bonds, TIPS and FRNs.

No login, no API key, no proxy. The actor reads the official keyless FiscalData API, so runs are fast and cheap.

### What you get

One row per auction.

| Field | Description |
| --- | --- |
| `auctionStatus` | `settled` (results published) or `announced` (scheduled, not yet held) |
| `cusip` | Security identifier |
| `securityType` / `securityTerm` | e.g. `Note`, `10-Year` |
| `auctionDate` / `issueDate` / `maturityDate` | Key dates |
| `auctionFormat` / `reopening` | Auction mechanics |
| `offeringUsd` | Size offered |
| `totalTenderedUsd` / `totalAcceptedUsd` | Demand and how much was taken |
| `bidToCoverRatio` | Tendered divided by accepted. The headline demand number |
| `highRatePct` | The high rate, normalised across security types |
| `rateType` | `yield` or `discount`, telling you which basis `highRatePct` came from |
| `highYieldPct` / `highDiscountRatePct` / `highInvestmentRatePct` / `couponRatePct` / `highPrice` | Raw rate fields as Treasury publishes them |
| `primaryDealerAcceptedUsd` / `directBidderAcceptedUsd` / `indirectBidderAcceptedUsd` | Allotment by bidder class |
| `primaryDealerPct` / `directBidderPct` / `indirectBidderPct` | Each class as a share of the auction |
| `scrapedAt` | Run timestamp, ISO 8601 |

#### Why `highRatePct` exists

Bills are quoted on a **discount** basis and carry `high_discnt_rate` with an always empty `high_yield`. Notes and Bonds are the other way round. Measured across the 2026 auctions, `high_yield` is populated on only about 22% of them, so reading that field alone makes three quarters of auctions look like they have no rate. `highRatePct` normalises the two into one comparable field and `rateType` records which basis it came from.

#### Announced versus settled

Treasury publishes the schedule ahead of time, so an auction appears in the data **before it is held**, with every result field empty. Those rows are labelled `announced` rather than mixed in with results, because an auction that has not happened is not an auction that drew zero demand. Set `status` to `announced` to use this as an upcoming auction calendar, or `settled` for results only.

### Input

| Field | Description |
| --- | --- |
| `dateFrom` | Earliest auction date `YYYY-MM-DD` (default: last 12 months) |
| `dateTo` | Latest auction date `YYYY-MM-DD`. Leave empty to include upcoming auctions |
| `securityTypes` | Any of `Bill`, `Note`, `Bond`, `TIPS`, `FRN`. Empty = all |
| `status` | `all`, `settled` or `announced` |
| `minBidToCover` | Only auctions at or above this ratio, e.g. `2.5` |
| `newOnly` | Monitor mode: emit only auctions not seen in earlier runs |
| `maxRows` | Stop after N rows, newest auction first (default 500) |

#### Monitor mode

Set `newOnly` to `true` and run it daily. An auction is reported once when it is announced and again when it settles, so results land as they publish. Quiet days cost nothing.

### Example

```json
{ "dateFrom": "2026-07-01", "securityTypes": ["Note", "Bond"], "status": "settled" }
```

```json
{
  "auctionStatus": "settled",
  "cusip": "91282CRD5",
  "securityType": "Note",
  "securityTerm": "2-Year",
  "auctionDate": "2026-07-29",
  "issueDate": "2026-07-31",
  "offeringUsd": 30000000000,
  "totalTenderedUsd": 104315845400,
  "totalAcceptedUsd": 33317226800,
  "bidToCoverRatio": 3.37,
  "highRatePct": null,
  "rateType": null,
  "highPrice": 100,
  "primaryDealerAcceptedUsd": 11018200000,
  "directBidderAcceptedUsd": 818200,
  "indirectBidderAcceptedUsd": 18943313200,
  "primaryDealerPct": 33.07,
  "directBidderPct": 0,
  "indirectBidderPct": 56.86,
  "scrapedAt": "2026-08-05T15:55:02.118Z"
}
```

### Who it's for

Rates traders and macro desks reading auction demand, fixed income newsletters that report bid to cover and indirect takedown, fintech apps building bond dashboards, and researchers tracking issuance and foreign demand over time.

### Pricing

Pay per auction row. The first 2 rows of every run are free so you can validate the output before you pay.

### Notes

- Rate fields lag slightly. Bid to cover and the allotments publish with the result, while the high rate can appear a little later, so a very recent auction may have `highRatePct` still empty.
- A missing value is always `null`, never `0`. Treasury sends the literal string `"null"` for absent fields, and reporting those as zero would state a bid to cover or a bidder share that never happened.

# Actor input Schema

## `dateFrom` (type: `string`):

Earliest auction date, as YYYY-MM-DD. Leave empty for the last 12 months.

## `dateTo` (type: `string`):

Latest auction date, as YYYY-MM-DD. Leave empty to include announced auctions that have not been held yet.

## `securityTypes` (type: `array`):

Which securities to include. Leave empty for all of them.

## `status` (type: `string`):

Settled auctions have results. Announced auctions are scheduled but not yet held, so their result fields are empty by definition.

## `minBidToCover` (type: `string`):

Only return auctions at or above this bid to cover ratio, for example 2.5. Announced auctions are excluded when this is set, because an auction that has not been held has no ratio yet.

## `newOnly` (type: `boolean`):

Remember auctions already returned and emit only ones not seen before. An auction reappears once when it moves from announced to settled, so results arrive as they publish. Quiet runs cost nothing.

## `maxRows` (type: `integer`):

Stop after this many rows, newest auction first.

## Actor input object example

```json
{
  "securityTypes": [],
  "status": "all",
  "newOnly": false,
  "maxRows": 500
}
```

# Actor output Schema

## `rows` (type: `string`):

CUSIP, security type and term, auction and issue dates, bid to cover ratio, high rate, offering and accepted amounts, and the primary dealer, direct and indirect bidder split.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "dateFrom": "",
    "dateTo": "",
    "securityTypes": [],
    "status": "all",
    "minBidToCover": "",
    "maxRows": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/treasury-auction-results").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "dateFrom": "",
    "dateTo": "",
    "securityTypes": [],
    "status": "all",
    "minBidToCover": "",
    "maxRows": 500,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/treasury-auction-results").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "dateFrom": "",
  "dateTo": "",
  "securityTypes": [],
  "status": "all",
  "minBidToCover": "",
  "maxRows": 500
}' |
apify call scrapemint/treasury-auction-results --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapemint/treasury-auction-results"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Cg8OShXJABu4NyeIq/builds/n8wQQB1GHFrZ1O6s2/openapi.json
