Skip to content

Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.

fix(usfiscaldata): correct nonexistent Treasury auctions_query field names (#201)

janosk215628f09d43f0
diff --git a/skills/usfiscaldata/references/datasets-securities.md b/skills/usfiscaldata/references/datasets-securities.md
index 10022454..aec6bf18 100644
--- a/skills/usfiscaldata/references/datasets-securities.md
+++ b/skills/usfiscaldata/references/datasets-securities.md
@@ -16,10 +16,11 @@ Historical data on Treasury securities auctions including bills, notes, bonds, T
| `security_term` | STRING | e.g., "4-Week", "2-Year", "10-Year" |
| `cusip` | STRING | CUSIP identifier |
| `offering_amt` | CURRENCY | Amount offered |
-| `accepted_comp_bid_rate_amt` | PERCENTAGE | High accepted competitive bid rate |
+| `high_yield` | PERCENTAGE | High accepted yield (notes/bonds/TIPS; bills use `high_discnt_rate`) |
+| `int_rate` | PERCENTAGE | Coupon/interest rate of the security |
| `bid_to_cover_ratio` | NUMBER | Bid-to-cover ratio |
| `total_accepted_amt` | CURRENCY | Total accepted amount |
-| `indirect_bid_pct_accepted` | PERCENTAGE | Indirect bidder percentage |
+| `indirect_bidder_accepted` | CURRENCY | Indirect bidder amount accepted (USD) |
| `issue_date` | DATE | Issue/settlement date |
| `maturity_date` | DATE | Maturity date |
diff --git a/skills/usfiscaldata/references/examples.md b/skills/usfiscaldata/references/examples.md
index ed8c473d..f64f62a2 100644
--- a/skills/usfiscaldata/references/examples.md
+++ b/skills/usfiscaldata/references/examples.md
@@ -69,22 +69,22 @@ result = fetch("/v1/accounting/od/auctions_query",
filter="security_type:eq:Note,security_term:eq:10-Year",
sort="-record_date", **{"page[size]": 20})
df = pd.DataFrame(result["data"])
-numeric_cols = ["accepted_comp_bid_rate_amt", "bid_to_cover_ratio",
- "total_accepted_amt", "indirect_bid_pct_accepted"]
+numeric_cols = ["high_yield", "bid_to_cover_ratio",
+ "total_accepted_amt", "indirect_bidder_accepted"]
for col in numeric_cols:
if col in df.columns:
df[col] = pd.to_numeric(df[col], errors="coerce")
-print(df[["record_date", "security_term", "accepted_comp_bid_rate_amt",
+print(df[["record_date", "security_term", "high_yield",
"bid_to_cover_ratio"]].head(10))
# Auction yield trend: 2-year vs 10-year
def get_auction_yields(term, n=24):
result = fetch("/v1/accounting/od/auctions_query",
- fields="record_date,security_term,accepted_comp_bid_rate_amt",
+ fields="record_date,security_term,high_yield",
filter=f"security_type:eq:Note,security_term:eq:{term}",
sort="-record_date", **{"page[size]": n})
df = pd.DataFrame(result["data"])
- df["yield"] = df["accepted_comp_bid_rate_amt"].astype(float)
+ df["yield"] = df["high_yield"].astype(float)
df["date"] = pd.to_datetime(df["record_date"])
return df[["date", "yield", "security_term"]].sort_values("date")