pigi.finance Rates API

The rates API from pigi.finance — 1 operation(s) for rates.

GitHub OpenAPI

Operations 1

GET /rates DeFi Base Rate (stablecoin + ETH) and T-Bill risk-free rate history #

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/pigi-finance:pigi-finance-rates-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

pigi-finance-rates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: pigi.finance Vault Intelligence Rates API
  version: 1.0.0
  description: 'Programmatic access to pigi.finance DeFi vault data: APR, APY, TVL (with 30-day moving averages) across daily and weekly/monthly/quarterly/yearly windows, plus holder counts, vault risk ratings, cumulative protocol ratings and DeFi/T-Bill reference rates. Authenticate by exchanging your API key for a short-lived JWT, then send `Authorization: Bearer ` on every request.


    RISK BANDS ARE NOT CREDIT RATINGS. A pigi risk band (`band`, `risk_band`) and its 0-100 score are a relative assessment of the risk of loss to a depositor''s position in a DeFi vault, compared across the vaults pigi tracks; a protocol band applies the same scale to a protocol as a dependency of the vaults that deposit into it. They are not credit ratings issued in accordance with Regulation (EC) No 1060/2009 on credit rating agencies, and pigi is not a registered or certified credit rating agency in the EU, the UK or anywhere else. A band does not address the ability or willingness of any person, protocol or issuer to meet payment or other financial obligations, and is not an opinion on the creditworthiness of any entity, debt or financial instrument. Fields carry the bare letter ("A" .. "F"); pigi displays bands with the (rb) suffix, e.g. B(rb). Nothing in this API is financial advice. Methodology: https://app.pigi.finance/risk


    PLANS (free / pro / custom — https://pigi.finance/defi-api). Every plan gets every rate, TVL and window figure, the holder COUNT (`Vault.holders`), Basic risk (`/vaults/{id}/risk`: band, score, history, floors) and the protocol ratings (`/protocols`, `/protocols/{node_id}`: score, band, node rating, vault contributions). Pro adds the holder LIST (`/vaults/{id}/holders`, with its concentration block) and the holder-analytics fields on `Vault` (`deposit_count`, `active_addresses_30d`, `tvl_concentration_top10pct`). Custom adds the `full` risk decomposition and the protocol `rubric`. A gated FIELD is served as null and named in a top-level `plan_required` object (`{ "": "" }`); a gated ENDPOINT answers 403 `{ "error": "plan_required", "required": "" }`. A null with no marker is a real null (not indexed yet, vault not assessed). Gated elements below carry `x-plan`.'
servers:
- url: https://pigi.finance/api/v1
security:
- bearerAuth: []
tags:
- name: Rates
paths:
  /rates:
    get:
      tags:
      - Rates
      summary: DeFi Base Rate (stablecoin + ETH) and T-Bill risk-free rate history
      description: Daily history of the pigi.finance DeFi Base Rate — the mean yield across the tracked stablecoin and ETH vault sets — alongside the 3-month U.S. T-Bill risk-free rate. Series are sorted oldest to newest.
      responses:
        '200':
          description: Rate history series
          content:
            application/json:
              schema:
                type: object
                properties:
                  stable:
                    type: array
                    items:
                      $ref: '#/components/schemas/RatePoint'
                  eth:
                    type: array
                    items:
                      $ref: '#/components/schemas/RatePoint'
                  tbills:
                    type: array
                    items:
                      $ref: '#/components/schemas/TBillPoint'
      operationId: getRates
      x-operation-id-source: derived
components:
  schemas:
    TBillPoint:
      type: object
      properties:
        timestamp:
          type: string
        rate:
          type:
          - number
          - 'null'
    RatePoint:
      type: object
      properties:
        timestamp:
          type: string
        apr:
          type:
          - number
          - 'null'
        apy:
          type:
          - number
          - 'null'
        apr_30d_ma:
          type:
          - number
          - 'null'
        apy_30d_ma:
          type:
          - number
          - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT