0xrhXBT Defi API

The defi API from 0xrhXBT — 4 operation(s) for defi.

GitHub OpenAPI

Operations 4

GET /api/v2/lending morpho lending markets #
GET /api/v2/stables stablecoin composition board #
GET /api/v2/earn robinhood earn, as observed #
GET /api/v2/perps lighter perp markets #

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/rhxbt-com:rhxbt-com-defi-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

rhxbt-com-defi-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 0xrhXBT public data Defi API
  version: 1.0.0
  description: 'Read-only onchain intelligence for Robinhood Chain (Arbitrum Orbit L2, chain id 4663): the tokenized-equity layer (premiums vs the live market, settlement, DvP counterparty graph, ERC-8056 corporate actions, AP float), oracle health, lending, stables, perps, chain economics, trending tokens, intel and narratives. Data honesty contract: unknown values are null (never fabricated zeros), every figure carries its own observation clock, and cached reads fail closed past their freshness ceiling with a dataNote. No investment advice. 0xrhXBT has NOT launched a token; any contract trading under this name is an impersonation.'
  contact:
    url: https://rhxbt.com/agents
    x-twitter: https://x.com/0xrhxbt
  x-machine-surfaces:
    mcp: https://rhxbt.com/mcp
    mcpDescriptor: https://rhxbt.com/.well-known/mcp.json
    agentCard: https://rhxbt.com/.well-known/agent.json
    x402: https://rhxbt.com/.well-known/x402
    llms: https://rhxbt.com/llms.txt
    skill: https://rhxbt.com/skill.md
    datasets: https://rhxbt.com/datasets
servers:
- url: https://rhxbt.com
tags:
- name: defi
paths:
  /api/v2/lending:
    get:
      summary: morpho lending markets
      description: morpho markets with stockCollateral marking tokenized-equity collateral; freshness-gated rows + observedAt + stale.
      tags:
      - defi
      responses:
        '200':
          description: lending board
          content:
            application/json:
              schema:
                type: object
                description: lending envelope
                properties:
                  rows:
                    type: array
                    items:
                      type: object
                      description: market row
                  observedAt:
                    type:
                    - integer
                    - 'null'
                  stale:
                    type: boolean
        '429':
          description: 'per-ip rate limit exceeded (Retry-After: 60)'
      x-rate-limit:
        requestsPerMinute: 60
        window: 60s
        scope: per-ip
      x-price:
        amount: 0
        currency: USDG
        note: free; if a paid lane ever exists it will appear at /.well-known/x402 before this field changes
      x-cors: 'Access-Control-Allow-Origin: * — cacheable public data'
      operationId: getApiV2Lending
      x-operation-id-source: derived
  /api/v2/stables:
    get:
      summary: stablecoin composition board
      description: per-stable supply at par, share, 24h/7d change (null until a reading that old exists), mint/burn tape, deployed ratio (null when either side is missing). cache-only from the 5-minute precompute; stale withholds rows. says nothing about peg.
      tags:
      - defi
      responses:
        '200':
          description: stables board
          content:
            application/json:
              schema:
                type: object
                description: stables envelope
                properties:
                  rows:
                    type: array
                    items:
                      type: object
                      description: per-stable row
                  computedAt:
                    type:
                    - integer
                    - 'null'
                  stale:
                    type: boolean
        '429':
          description: 'per-ip rate limit exceeded (Retry-After: 60)'
      x-rate-limit:
        requestsPerMinute: 60
        window: 60s
        scope: per-ip
      x-price:
        amount: 0
        currency: USDG
        note: free; if a paid lane ever exists it will appear at /.well-known/x402 before this field changes
      x-cors: 'Access-Control-Allow-Origin: * — cacheable public data'
      operationId: getApiV2Stables
      x-operation-id-source: derived
  /api/v2/earn:
    get:
      summary: robinhood earn, as observed
      description: 'the USDG-loan morpho markets behind Earn: supply, borrow, utilization, supply-weighted APY (marketsWithoutApy counted, never averaged in at 0%), stock-collateral share, and the 7-day series. current reading withheld past the lending ceiling; the settled series is always readable.'
      tags:
      - defi
      responses:
        '200':
          description: earn tracker
          content:
            application/json:
              schema:
                type: object
                description: earn envelope
                properties:
                  markets:
                    type: array
                    items:
                      type: object
                      description: USDG market row
                  aggregate:
                    type: object
                    description: supply-weighted aggregate
                  series:
                    type: array
                    items:
                      type: object
                      description: 10-minute capture
                  stale:
                    type: boolean
        '429':
          description: 'per-ip rate limit exceeded (Retry-After: 60)'
      x-rate-limit:
        requestsPerMinute: 60
        window: 60s
        scope: per-ip
      x-price:
        amount: 0
        currency: USDG
        note: free; if a paid lane ever exists it will appear at /.well-known/x402 before this field changes
      x-cors: 'Access-Control-Allow-Origin: * — cacheable public data'
      operationId: getApiV2Earn
      x-operation-id-source: derived
  /api/v2/perps:
    get:
      summary: lighter perp markets
      description: 'the chain''s native perp venue, USDG-quoted: mark, index, open interest, 24h volume, hourly funding, next settlement. stock-ticker rows carry dexPriceUsd and a basis block computed only between two current legs. ?funding=SYMBOL returns that market''s hourly funding series instead.'
      tags:
      - defi
      parameters:
      - name: funding
        in: query
        description: market symbol or id — switches the response to the hourly funding series
        required: false
        schema:
          type: string
      - name: limit
        in: query
        description: funding series length (default 168, max 720)
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 720
      responses:
        '200':
          description: perp board or funding series
          content:
            application/json:
              schema:
                type: object
                description: perps envelope
                properties:
                  rows:
                    type: array
                    items:
                      type: object
                      description: market row (board) or funding point (series)
                  observedAt:
                    type:
                    - integer
                    - 'null'
                  stale:
                    type: boolean
        '429':
          description: 'per-ip rate limit exceeded (Retry-After: 60)'
      x-rate-limit:
        requestsPerMinute: 60
        window: 60s
        scope: per-ip
      x-price:
        amount: 0
        currency: USDG
        note: free; if a paid lane ever exists it will appear at /.well-known/x402 before this field changes
      x-cors: 'Access-Control-Allow-Origin: * — cacheable public data'
      operationId: getApiV2Perps
      x-operation-id-source: derived