Loading...
Loading...
The Treasury's official quarterly 'Reporting Rates of Exchange' for a country's currency, as required for federal financial reporting. Called as GET /v1/treasury/reporting-rate, it takes country, currency, asOf and returns found, exchangeRate, recordDate, fiscalQuarter. Distinct from the neighbouring services in this domain by: official, rates, required, financial. Federal grantees, contractors and anyone filing in USD must convert at the Treasury rate rather than a market rate, and using the wrong one makes the filing wrong. Reading this schema and dry-running the call are free and need no wallet; a real call costs $0.003, paid in USDC on Base over x402.
npx skill4agent add fittings-sh/fittings fittings-treasury-reporting-ratetreasury.reporting-ratehttps://fittings.shGET https://fittings.sh/v1/treasury/reporting-rate| Field | Type | Required | Notes |
|---|---|---|---|
| string | yes | Country as Treasury names it, e.g. 'Canada' |
| string | no | Optional currency name, e.g. 'Dollar', to disambiguate |
| string | no | Optional ISO date; returns the rate in force on that date |
{
"country": "Canada",
"asOf": "2024-03-31"
}| Price | $0.003 |
| Source | US Treasury Bureau of the Fiscal Service, Fiscal Data API, public domain |
| Licence | public-domain |
fittingscall.mjscurl -sO https://fittings.sh/skill/call.mjscurl -s https://fittings.sh/catalog/treasury.reporting-rate | jq402 Payment Required# Dry run. Prints the quote and pays nothing, because no key is set.
node call.mjs treasury.reporting-rate country=Canada asOf=2024-03-31
# For real: a wallet holding USDC on Base, and nothing else.
export FITTINGS_PRIVATE_KEY=0x...
node call.mjs treasury.reporting-rate country=Canada asOf=2024-03-31FITTINGS_PRIVATE_KEYFITTINGS_MAX_PRICE@x402/core@x402/evmfittingshttps://fittings.sh/catalog/search?q=...