Vextorium Treasury API

The treasury API from Vextorium — 3 operation(s) for treasury.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

POST /v1/us-treasury-yield-curve US Treasury yield curve #
POST /v1/us-treasury-auctions US Treasury auctions #
POST /v1/us-debt-avg-interest Average interest rate on US debt #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/vextorium-com:vextorium-com-treasury-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

vextorium-com-treasury-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vextorium Com Treasury API
  version: 1.0.0
  contact:
    email: bru1noia@gmail.com
    url: https://vextorium.com
  x-guidance: 'Start here by task: crypto prices → /v1/crypto-price, /v1/crypto-convert and /v1/portfolio-valuation; compliance / KYB → /v1/sanctions-screening, /v1/wallet-sanctions-check, /v1/lei-search and /v1/eu-vat-vies; macro → /v1/economic-calendar, /v1/fed-rates, /v1/us-treasury-yield-curve and /v1/ecb-interest-rates; US companies → /v1/company-fundamentals and /v1/company-filings. Full workflows: https://api.vextorium.com/llms.txt. Every operation is a POST with a JSON body (see each requestBody example). The first call returns HTTP 402 with the x402 v2 challenge; pay in USDC on Base, Solana, Polygon, Stellar, Optimism or Arc, or RLUSD or XRP on the XRP Ledger and retry the same request. The same 402 response also carries an MPP challenge (WWW-Authenticate: Payment, method="tempo", intent="charge") for the same price in USDC.e or OUSD on Tempo mainnet (chain 4217). Pay with any MPP client, such as the mppx SDK, and retry with Authorization: Payment; the receipt comes in the Payment-Receipt header. Only pull mode (signed transaction) is accepted, and it is broadcast only if the call succeeds. Only successful (200) responses are charged; invalid input (4xx) or an unavailable upstream source (5xx) is never charged. Machine-readable catalog with real example outputs: https://api.vextorium.com/catalog.json. MCP server: https://api.vextorium.com/mcp'
  description: 'Operations tagged treasury across 2 of this provider''s published API definitions: vextorium-openapi.json, vextorium-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.vextorium.com
tags:
- name: treasury
paths:
  /v1/us-treasury-yield-curve:
    post:
      operationId: v1/us_treasury_yield_curve
      summary: US Treasury yield curve
      description: Latest US Treasury par yield curve (1 month to 30 years), change in basis points versus N days ago, 10y-2y and 10y-3m spreads and inversion flag. Official US Treasury data (public domain).
      tags:
      - treasury
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                compare_days:
                  type: integer
                  description: Compare with N days earlier (1-365, default 30)
                  minimum: 1
                  maximum: 365
                  default: 30
              required: []
            example:
              compare_days: 30
      responses:
        '200':
          description: JSON result (charged only on success). If the data source is down but the data we hold is still current (before the source's next update), the result also carries data_as_of and data_valid_until (ISO 8601, UTC).
          content:
            application/json:
              schema:
                type: object
                properties:
                  date:
                    type:
                    - string
                    - 'null'
                  compared_with:
                    type:
                    - string
                    - 'null'
                  curve:
                    type:
                    - array
                    - 'null'
                    items:
                      type:
                      - 'null'
                      - object
                      properties:
                        term:
                          type:
                          - 'null'
                          - string
                        rate_pct:
                          type:
                          - 'null'
                          - number
                        change_bp:
                          type:
                          - 'null'
                          - number
                  spread_10y_2y_bp:
                    type:
                    - number
                    - 'null'
                  spread_10y_3m_bp:
                    type:
                    - number
                    - 'null'
                  inverted_2y_10y:
                    type:
                    - boolean
                    - 'null'
                  source:
                    type:
                    - string
                    - 'null'
                  data_as_of:
                    type:
                    - string
                    - 'null'
                  data_valid_until:
                    type:
                    - string
                    - 'null'
              example:
                date: '2026-10-01'
                compared_with: '2026-09-01'
                curve:
                - term: 1 Mo
                  rate_pct: 4.06
                  change_bp: 21
                - term: 1.5 Month
                  rate_pct: 4.1
                  change_bp: 22
                spread_10y_2y_bp: 46
                spread_10y_3m_bp: 107
                inverted_2y_10y: false
                source: U.S. Department of the Treasury, Daily Treasury Par Yield Curve Rates (public domain)
        '402':
          description: 'Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header (USDC on Base, Solana, Polygon, Stellar, Optimism or Arc, or RLUSD or XRP on the XRP Ledger); MPP challenge (tempo/charge, USDC.e or OUSD on Tempo) in the WWW-Authenticate header'
        '404':
          description: No data for this query (not charged)
        '422':
          description: Invalid input (not charged)
        '503':
          description: Data source unavailable and no current data held; retry later (not charged)
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
        '504':
          description: Data source too slow; retry later (not charged)
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.010000'
        protocols:
        - x402:
            version: 2
            networks:
            - Base
            - Solana
            - XRPL (RLUSD)
            - XRPL (XRP)
            - Stellar
            - Polygon
            - Optimism (Circle Gateway)
            - Arc (Circle Gateway)
            asset: USDC
        - mpp:
            method: tempo
            intent: charge
            network: tempo:4217
            asset: USDC.e or OUSD
        offers:
        - amount: '10000'
          currency: '0x20C000000000000000000000b9537d11c60E8b50'
          description: Vextorium /v1/us-treasury-yield-curve
          intent: charge
          method: tempo
        - amount: '10000'
          currency: '0x20c0000000000000000000006a37DA5C996874BE'
          description: Vextorium /v1/us-treasury-yield-curve
          intent: charge
          method: tempo
    servers:
    - url: https://api.vextorium.com
  /v1/us-treasury-auctions:
    post:
      operationId: v1/us_treasury_auctions
      summary: US Treasury auctions
      description: 'US Treasury debt auctions (bills, notes, bonds, TIPS, FRNs): upcoming announced auctions or recent results with term, offering amount, high yield and bid-to-cover demand. Official Fiscal Data.'
      tags:
      - treasury
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  enum:
                  - bill
                  - note
                  - bond
                  - tips
                  - frn
                upcoming:
                  type: boolean
                limit:
                  type: integer
                  description: 1-100 (default 15)
                  minimum: 1
                  maximum: 100
                  default: 15
              required: []
            example:
              limit: 5
      responses:
        '200':
          description: JSON result (charged only on success). If the data source is down but the data we hold is still current (before the source's next update), the result also carries data_as_of and data_valid_until (ISO 8601, UTC).
          content:
            application/json:
              schema:
                type: object
                properties:
                  upcoming:
                    type:
                    - boolean
                    - 'null'
                  auctions:
                    type:
                    - array
                    - 'null'
                    items:
                      type:
                      - 'null'
                      - object
                      properties:
                        auction_date:
                          type:
                          - 'null'
                          - string
                        type:
                          type:
                          - 'null'
                          - string
                        term:
                          type:
                          - 'null'
                          - string
                        cusip:
                          type:
                          - 'null'
                          - string
                        maturity:
                          type:
                          - 'null'
                          - string
                        offered_amount_usd:
                          type:
                          - 'null'
                          - number
                        awarded_rate_pct:
                          type:
                          - 'null'
                          - number
                        bid_to_cover:
                          type:
                          - 'null'
                          - number
                        coupon_pct: {}
                  source:
                    type:
                    - string
                    - 'null'
              example:
                upcoming: false
                auctions:
                - auction_date: '2026-10-01'
                  type: Bill
                  term: 4-Week
                  cusip: 912797VP9
                  maturity: '2026-11-03'
                  offered_amount_usd: 100000000000
                  awarded_rate_pct: 3.956
                  bid_to_cover: 2.83
                  coupon_pct: null
                - auction_date: '2026-10-01'
                  type: Bill
                  term: 8-Week
                  cusip: 912797VZ7
                  maturity: '2026-12-01'
                  offered_amount_usd: 95000000000
                  awarded_rate_pct: 4.071
                  bid_to_cover: 2.7
                  coupon_pct: null
                source: U.S. Treasury Fiscal Data (public domain)
        '402':
          description: 'Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header (USDC on Base, Solana, Polygon, Stellar, Optimism or Arc, or RLUSD or XRP on the XRP Ledger); MPP challenge (tempo/charge, USDC.e or OUSD on Tempo) in the WWW-Authenticate header'
        '404':
          description: No data for this query (not charged)
        '422':
          description: Invalid input (not charged)
        '503':
          description: Data source unavailable and no current data held; retry later (not charged)
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
        '504':
          description: Data source too slow; retry later (not charged)
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.003000'
        protocols:
        - x402:
            version: 2
            networks:
            - Base
            - Solana
            - XRPL (RLUSD)
            - XRPL (XRP)
            - Stellar
            - Polygon
            - Optimism (Circle Gateway)
            - Arc (Circle Gateway)
            asset: USDC
        - mpp:
            method: tempo
            intent: charge
            network: tempo:4217
            asset: USDC.e or OUSD
        offers:
        - amount: '3000'
          currency: '0x20C000000000000000000000b9537d11c60E8b50'
          description: Vextorium /v1/us-treasury-auctions
          intent: charge
          method: tempo
        - amount: '3000'
          currency: '0x20c0000000000000000000006a37DA5C996874BE'
          description: Vextorium /v1/us-treasury-auctions
          intent: charge
          method: tempo
    servers:
    - url: https://api.vextorium.com
  /v1/us-debt-avg-interest:
    post:
      operationId: v1/us_debt_avg_interest
      summary: Average interest rate on US debt
      description: Average interest rate the US Treasury pays on its debt by instrument (bills, notes, bonds, TIPS, FRNs...) and total, with the rate one year earlier. US Treasury, public domain.
      tags:
      - treasury
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties: {}
              required: []
            example: {}
      responses:
        '200':
          description: JSON result (charged only on success). If the data source is down but the data we hold is still current (before the source's next update), the result also carries data_as_of and data_valid_until (ISO 8601, UTC).
          content:
            application/json:
              schema:
                type: object
                properties:
                  date:
                    type:
                    - string
                    - 'null'
                  instruments:
                    type:
                    - array
                    - 'null'
                    items:
                      type:
                      - 'null'
                      - object
                      properties:
                        type:
                          type:
                          - 'null'
                          - string
                        instrument:
                          type:
                          - 'null'
                          - string
                        avg_rate_pct:
                          type:
                          - 'null'
                          - number
                        1_year_ago_pct:
                          type:
                          - 'null'
                          - number
                  source:
                    type:
                    - string
                    - 'null'
              example:
                date: '2026-08-31'
                instruments:
                - type: Marketable
                  instrument: Treasury Bills
                  avg_rate_pct: 3.788
                  1_year_ago_pct: 4.283
                - type: Marketable
                  instrument: Treasury Notes
                  avg_rate_pct: 3.345
                  1_year_ago_pct: 3.087
                source: U.S. Treasury, Average Interest Rates on U.S. Treasury Securities (public domain)
        '402':
          description: 'Payment Required: x402 v2 challenge in the PAYMENT-REQUIRED header (USDC on Base, Solana, Polygon, Stellar, Optimism or Arc, or RLUSD or XRP on the XRP Ledger); MPP challenge (tempo/charge, USDC.e or OUSD on Tempo) in the WWW-Authenticate header'
        '404':
          description: No data for this query (not charged)
        '422':
          description: Invalid input (not charged)
        '503':
          description: Data source unavailable and no current data held; retry later (not charged)
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
        '504':
          description: Data source too slow; retry later (not charged)
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.010000'
        protocols:
        - x402:
            version: 2
            networks:
            - Base
            - Solana
            - XRPL (RLUSD)
            - XRPL (XRP)
            - Stellar
            - Polygon
            - Optimism (Circle Gateway)
            - Arc (Circle Gateway)
            asset: USDC
        - mpp:
            method: tempo
            intent: charge
            network: tempo:4217
            asset: USDC.e or OUSD
        offers:
        - amount: '10000'
          currency: '0x20C000000000000000000000b9537d11c60E8b50'
          description: Vextorium /v1/us-debt-avg-interest
          intent: charge
          method: tempo
        - amount: '10000'
          currency: '0x20c0000000000000000000006a37DA5C996874BE'
          description: Vextorium /v1/us-debt-avg-interest
          intent: charge
          method: tempo
    servers:
    - url: https://api.vextorium.com
x-refined-from:
- vextorium-openapi.json
- vextorium-com-openapi.json
x-service-info:
  docs:
    homepage: https://vextorium.com
    llms: https://api.vextorium.com/llms.txt
    apiReference: https://api.vextorium.com/openapi.json
x-provenance:
  method: harvested
  publisher: Vextorium
  source: https://vextorium.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)