Duaer

Get started

US Treasury fiscal data in Duaer

In Duaer: US Treasury Fiscal Data: daily total public debt, average interest rates on Treasury securities, and Treasury reporting exchange rates. One successful search uses 1 credit.

What you get

Duaer US Treasury fiscal data reads three official US Treasury datasets, newest first: debt to the penny, average interest rates by security, and quarterly reporting exchange rates.

Pick Duaer Data → US Treasury fiscal data in the node creator, or open the data market. Related: US federal agency budgets, Exchange rates.

When to use it

  • Get the latest US total public debt.
  • Look up the rate the US Treasury uses to convert a foreign currency.

When not to use it

Search on the canvas

  1. Open the node creator and pick Duaer Data → US Treasury fiscal data.
  2. Fill Dataset (debt, interest, or exchange). Optional: Words (such as China).
  3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

Call the API

  • GET https://api.duaer.com/v1/data/treasury?dataset=debt
  • Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

Call skill

Same text as Copy skill.

---
name: duaer-treasury
description: >-
  Duaer US Treasury fiscal data. US Treasury Fiscal Data: daily total public debt, average interest rates on Treasury securities, and Treasury reporting exchange rates.
  One successful search uses 1 Duaer credit.
---

# Duaer US Treasury fiscal data

Duaer US Treasury fiscal data reads three official US Treasury datasets, newest first: debt to the penny, average interest rates by security, and quarterly reporting exchange rates.

## When to use

- Get the latest US total public debt.
- Look up the rate the US Treasury uses to convert a foreign currency.

## When not to use

- Market exchange rates. Use https://skills.duaer.com/exchange-rates.md.
- Agency budgets. Use https://skills.duaer.com/usaspending.md.

## Call

`GET https://api.duaer.com/v1/data/treasury?dataset=debt`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `dataset`.

- `dataset` — `debt` (debt to the penny), `interest` (average rates by security), or `exchange` (rates per US dollar).
- `words` — Optional. Filter rows, such as Treasury Bills or China.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/treasury?dataset=debt&limit=5` — the last five days of total public debt.
- `GET https://api.duaer.com/v1/data/treasury?dataset=exchange&words=China` — Treasury rates for the renminbi.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `date` — record date.
- Debt: `totalDebtUsd`, `debtHeldByPublicUsd`, `intragovernmentalUsd`.
- Interest: `security`, `securityType`, `averageRatePercent`.
- Exchange: `country`, `currency`, `perUsd`, `effectiveDate`.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/usaspending.md — Duaer US federal agency budgets
- https://skills.duaer.com/exchange-rates.md — Duaer Exchange rates

Questions

How many credits does a US Treasury fiscal data search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

Which datasets does Duaer US Treasury fiscal data cover?

Duaer US Treasury fiscal data covers debt (debt to the penny), interest (average interest rates), and exchange (quarterly reporting rates).

In this section