MarginPad Macro API

Economic calendar, Fear & Greed, global stats, DeFi TVL

GitHub OpenAPI

Operations 6

GET /api/v1/calendar Crypto economic calendar #
GET /api/v1/fear-greed Fear & Greed index #
GET /api/v1/coins Top coins by market cap #
GET /api/v1/global Global market stats #
GET /api/v1/trending Trending coins #
GET /api/v1/defi DeFi TVL overview #

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/marginpad-io:marginpad-io-macro-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

marginpad-io-macro-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MarginPad Free Crypto Macro API
  version: 2.9.1
  description: Free, keyless, CORS-enabled crypto market-data API. Live prices, OHLC candles, a scored futures screener, funding rates, open interest, long/short ratios, liquidations, an economic calendar, the Fear & Greed index, top coins, global market stats, DeFi TVL, trading calculators, and a free paper-trading REST API for testing bots. No API key. No sign-up. about 60 requests/minute per client. Every response uses the envelope { ok, data, error, ts }, except the four liquidation-collector passthroughs (feed, liquidations/live, liquidations/recent, clusters), which return the raw collector object and are marked as such.
  contact:
    name: MarginPad
    url: https://marginpad.io/free-crypto-api/
  license:
    name: Free for public use
servers:
- url: https://marginpad.io
  description: Production
tags:
- name: Macro
  description: Economic calendar, Fear & Greed, global stats, DeFi TVL
paths:
  /api/v1/calendar:
    get:
      tags:
      - Macro
      summary: Crypto economic calendar
      description: FOMC, CPI, NFP, options expiry and crypto milestones with exact UTC timestamps. Omit params for the upcoming window; pass year for a full year incl. history.
      parameters:
      - name: year
        in: query
        required: false
        description: Full year 2023-2027 for the whole year incl. past events. Omit for the upcoming window.
        schema:
          type: string
        example: '2026'
      responses:
        '200':
          description: ok
      operationId: getApiV1Calendar
      x-operation-id-source: derived
  /api/v1/fear-greed:
    get:
      tags:
      - Macro
      summary: Fear & Greed index
      description: Current crypto Fear & Greed value (0-100) and classification.
      responses:
        '200':
          description: ok
      operationId: getApiV1FearGreed
      x-operation-id-source: derived
  /api/v1/coins:
    get:
      tags:
      - Macro
      summary: Top coins by market cap
      description: 'Top ~250 coins: price, market cap, 1h/24h/7d change, sparkline. Optional category filter.'
      parameters:
      - name: cat
        in: query
        required: false
        description: CoinGecko category id, e.g. layer-1, decentralized-finance-defi, meme-token, artificial-intelligence.
        schema:
          type: string
        example: layer-1
      responses:
        '200':
          description: ok
      operationId: getApiV1Coins
      x-operation-id-source: derived
  /api/v1/global:
    get:
      tags:
      - Macro
      summary: Global market stats
      description: Total market cap, 24h volume, BTC dominance.
      responses:
        '200':
          description: ok
      operationId: getApiV1Global
      x-operation-id-source: derived
  /api/v1/trending:
    get:
      tags:
      - Macro
      summary: Trending coins
      description: Currently trending coins (CoinGecko search trending).
      responses:
        '200':
          description: ok
      operationId: getApiV1Trending
      x-operation-id-source: derived
  /api/v1/defi:
    get:
      tags:
      - Macro
      summary: DeFi TVL overview
      description: Total DeFi TVL, top chains, biggest protocols, largest stablecoins (DefiLlama-aggregated).
      responses:
        '200':
          description: ok
      operationId: getApiV1Defi
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Required for paper-trading endpoints; OPTIONAL on /api/v1/* data endpoints, where sending it moves the call from the 60/minute per-IP limit to the key’s own budget (120/minute on Free, 600 on API Pro, 2000 on Max, 5000 on Business). Mint a key at POST /api/bot/key while signed in, or on https://marginpad.io/trading-api/.
externalDocs:
  description: Full manual with curl / JS / Python examples
  url: https://marginpad.io/free-crypto-api/