WickedAPI DeFi & Macro Data API

TVL, market overview, gas, rates, volatility, sentiment, market clock

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 7

GET /v1/volatility Deribit volatility: DVOL implied-vol index (30d forward) + latest realized… #
GET /v1/sentiment Free, no signup required #
GET /v1/defi-tvl DefiLlama data: TVL by chain, stablecoin circulating supply, or yield pools #
GET /v1/rates US Treasury yield curve (1M–30Y) + recession-indicator spreads (10y-2y… #
GET /v1/market-clock US equities market clock (is_open, next_open/close) + upcoming sessions, via… #
GET /v1/market-overview Free, no signup required #
GET /v1/gas Free, no signup required #

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/wickedapi-com:wickedapi-com-defi-macro-data-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

wickedapi-com-defi-macro-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trading Data DeFi & Macro Data API
  version: 1.0.0-mvp
  description: 'Agent-ready trading, market-data and on-chain API. 29 endpoints across crypto/stock prices & OHLCV, indicators (ATR, Fair Value Gaps, ICT liquidity levels), perp funding/OI, order books, Kalshi prediction markets, DeFi TVL, volatility, a verified macro calendar, an AI momentum score, and on-chain reads (balances, token balances, nonces, blocks, ENS, transactions) on 5 EVM chains.


    **Access — two ways, both work on every /v1 endpoint:**

    1. **API key** — send an `x-api-key` header for free, rate-limited access.

    2. **x402 pay-per-call** — no signup: call any endpoint with no key, receive a `402` with a USDC price (currently $0.001/request on base), pay via an x402 client, and get `200` + data. Settled on-chain via the Coinbase CDP facilitator.'
  x-guidance: All endpoints are GET /v1/<name> with query parameters (see each operation). Free endpoints (/v1/status, /v1/sentiment, /v1/macro-calendar, /v1/market-overview, /v1/gas, /v1/kalshi-probability) need no payment. Every other /v1 endpoint returns a 402 x402 (v2) challenge in the PAYMENT-REQUIRED header with a flat price of $0.001 USDC per request on Base; pay with an x402 client and retry the same request. Start with GET /v1/status for the full catalog.
  contact:
    url: https://api.wickedapi.com
  termsOfService: https://api.wickedapi.com/
servers:
- url: https://api.wickedapi.com
  description: Production
tags:
- name: DeFi & Macro Data
  description: TVL, market overview, gas, rates, volatility, sentiment, market clock
paths:
  /v1/volatility:
    get:
      operationId: get_v1_volatility
      summary: 'Deribit volatility: DVOL implied-vol index (30d forward) + latest realized…'
      description: 'Deribit volatility: DVOL implied-vol index (30d forward) + latest realized volatility, for BTC or ETH.


        **Example:** `/v1/volatility?currency=BTC`'
      tags:
      - DeFi & Macro Data
      parameters:
      - name: currency
        in: query
        required: false
        description: Optional. BTC (default) or ETH.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
  /v1/sentiment:
    get:
      operationId: get_v1_sentiment
      summary: Free, no signup required
      description: 'Free, no signup required. Crypto Fear & Greed Index (alternative.me), current reading + optional history.


        **Example:** `/v1/sentiment?limit=7`'
      tags:
      - DeFi & Macro Data
      parameters:
      - name: limit
        in: query
        required: false
        description: Optional. Number of days of history (default 1, max 90).
        schema:
          type: number
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security: []
  /v1/defi-tvl:
    get:
      operationId: get_v1_defi_tvl
      summary: 'DefiLlama data: TVL by chain, stablecoin circulating supply, or yield pools'
      description: 'DefiLlama data: TVL by chain, stablecoin circulating supply, or yield pools.


        **Example:** `/v1/defi-tvl?view=chains`'
      tags:
      - DeFi & Macro Data
      parameters:
      - name: view
        in: query
        required: false
        description: Optional. chains (default), stablecoins, or yields.
        schema:
          type: string
          enum:
          - chains
          - stablecoins
          - yields
      - name: chain
        in: query
        required: false
        description: Optional (yields view). Filter pools by chain, e.g. Ethereum.
        schema:
          type: string
      - name: project
        in: query
        required: false
        description: Optional (yields view). Filter pools by project, e.g. aave-v3.
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Optional. Rows to return (default 20, max 100).
        schema:
          type: number
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
  /v1/rates:
    get:
      operationId: get_v1_rates
      summary: US Treasury yield curve (1M–30Y) + recession-indicator spreads (10y-2y…
      description: 'US Treasury yield curve (1M–30Y) + recession-indicator spreads (10y-2y, 10y-3m), from FRED.


        **Example:** `/v1/rates`'
      tags:
      - DeFi & Macro Data
      parameters:
      - name: series
        in: query
        required: false
        description: Optional. A specific FRED series id (e.g. DGS10) for a single value.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
  /v1/market-clock:
    get:
      operationId: get_v1_market_clock
      summary: US equities market clock (is_open, next_open/close) + upcoming sessions, via…
      description: 'US equities market clock (is_open, next_open/close) + upcoming sessions, via Alpaca. Crypto endpoints are 24/7 and unaffected.


        **Example:** `/v1/market-clock`'
      tags:
      - DeFi & Macro Data
      parameters:
      - name: days
        in: query
        required: false
        description: Optional. Upcoming session days to include (default 3, max 30; 0 to omit).
        schema:
          type: number
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security:
      - ApiKeyAuth: []
      - {}
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.001000'
        protocols:
        - x402: {}
  /v1/market-overview:
    get:
      operationId: get_v1_market_overview
      summary: Free, no signup required
      description: 'Free, no signup required. CoinGecko global crypto stats (total market cap, 24h volume, BTC/ETH dominance) or top coins by market cap.


        **Example:** `/v1/market-overview`'
      tags:
      - DeFi & Macro Data
      parameters:
      - name: view
        in: query
        required: false
        description: Optional. global (default) or coins.
        schema:
          type: string
          enum:
          - global
          - coins
      - name: limit
        in: query
        required: false
        description: Optional (coins view). Number of coins (default 20, max 100).
        schema:
          type: number
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security: []
  /v1/gas:
    get:
      operationId: get_v1_gas
      summary: Free, no signup required
      description: 'Free, no signup required. Ethereum gas oracle (safe/propose/fast gas prices + base fee, in gwei), via Etherscan.


        **Example:** `/v1/gas`'
      tags:
      - DeFi & Macro Data
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        '502':
          $ref: '#/components/responses/UpstreamError'
      security: []
components:
  responses:
    UpstreamError:
      description: Upstream data error — never fabricated data, a real source failure
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded (keyed access)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid x-api-key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: No valid x-api-key — pay per call via x402 (USDC on Base). See the `accepts` array for exact price/network/payTo.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/X402Challenge'
  schemas:
    Envelope:
      type: object
      required:
      - data
      - meta
      properties:
        data:
          type: object
          description: Endpoint-specific payload.
        meta:
          type: object
          required:
          - timestamp
          properties:
            timestamp:
              type: string
              format: date-time
          additionalProperties: true
    X402Challenge:
      type: object
      description: x402 v2 payment challenge. The base64-encoded challenge is in the PAYMENT-REQUIRED response header (decode to JSON with x402Version 2 and an `accepts` array); sign it and retry with a PAYMENT-SIGNATURE header. The response body is not the challenge.
      properties: {}
      additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: string
        source:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Free, rate-limited access.