Backtesting Arena Macro API

Daily Macro Regime snapshot — 18 components in 6 tiers (Liquidity / FCI / Risk Appetite / Crypto / Cycle / Inflation) synthesized into composite + 2D-matrix quadrant. FRED-sourced. [Free tier]

GitHub OpenAPI

Operations 4

GET /api/v1/macro/regime/latest Macro Regime snapshot (latest) #
GET /api/v1/macro/regime/history Macro Regime timeline (history) #
GET /api/v1/macro/btc-correlations/latest BTC × Macro Correlations (latest) #
GET /api/v1/macro/calendar Macro calendar — US CPI releases and FOMC decisions #

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/tradingstrategies-work:tradingstrategies-work-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

tradingstrategies-work-macro-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Backtesting Arena — Public Macro API
  description: 'Battle-tested market intelligence for humans and AI agents — every claim backtested, versioned, and explainable. Evidence and base rates, never financial advice.


    **No execution, no custody:** No tool on this server can place an order, access an exchange account, or take a position — the platform holds no custody and executes no trades. Writes are limited to alert subscriptions and saved backtests; paid endpoints charge a fixed, pre-quoted per-call fee and nothing else.


    Programmatic access to daily Bitcoin/crypto cycle scoring, on-chain indicators, aggregated strategy/sentiment insights, and on-demand backtests. Three channels:


    - **REST** — Bearer-Token-Auth, this spec. Available now.

    - **MCP** — same Bearer-Tokens, 104 tools at https://tradingstrategies.work/api/mcp. Available now.

    - **x402** — pay-per-call USDC on Base, no account. 28 endpoints under /api/v1/agent/* from $0.01-$0.50. Available now.


    **Your agent can produce, not just consume:** every authenticated backtest (POST /api/v1/backtests/run, MCP arena_run_backtest) is persisted and feeds the public evidence library (Strategy Insights, Edge Library, sentiment) — agent runs count exactly like human runs. x402-anonymous runs stay ephemeral.


    Tiers: Free / API Pro €9,99/Mo / API Power €29,99/Mo. Live-Subscriptions (signal alerts, cycle changes, etc.) push updates via polling or webhook. Get a Free-tier key at /dashboard/account/api-keys (no credit-card required).'
  version: 1.0.0
  contact:
    name: Backtesting Arena
    url: https://tradingstrategies.work
    email: info@tradingstrategies.work
  license:
    name: See terms
    url: https://tradingstrategies.work/agb
  x-logo:
    url: https://tradingstrategies.work/og-image.png
servers:
- url: https://tradingstrategies.work
  description: Production
tags:
- name: Macro
  description: Daily Macro Regime snapshot — 18 components in 6 tiers (Liquidity / FCI / Risk Appetite / Crypto / Cycle / Inflation) synthesized into composite + 2D-matrix quadrant. FRED-sourced. [Free tier]
paths:
  /api/v1/macro/regime/latest:
    get:
      summary: Macro Regime snapshot (latest)
      description: 'Daily Macro Regime — 18 components in 6 tiers (Liquidity 30% / Financial Conditions 20% / Risk Appetite 15% / Crypto Liquidity 10% / Business Cycle 15% / Inflation 10%). FRED-sourced (no API key required). Returns composite_score (0-100), regime_label (risk_off/neutral/risk_on_leaning/risk_on), cycle_phase_label, matrix_quadrant (sweet_spot/late_cycle_warning/crisis/recovery), tier_scores (6 sub-scores), components (flat key/value). Note two component keys whose name is narrower than it looks: `vix_score` is the derived 0-100 score (71 corresponds to VIX around 18.6), not the VIX index level — the raw Cboe level is not redistributed over machine channels; `broad_dollar_index` is FRED DTWEXBGS (Broad USD Index, Jan 2006 = 100), not the ICE DXY. `fed_funds_rate` is FRED FEDFUNDS, the monthly AVERAGE effective rate (lags; not the daily DFF, not the target range); `global_m2_yoy` is NOT M2 but the YoY change of G3 central-bank balance sheets (Fed+ECB+BoJ in USD) — it can fall while US M2 hits a record. component_notes carries these definitions in the payload. The former keys `vix` and `dxy` were removed on 2026-09-01 after their announced deprecation window, along with `consumer_confidence_value` (OECD retired the series; frozen since 2024-01-01 and never weighted in the composite). stale_components_detail flags series the upstream retired permanently via `discontinued`. [Free tier]'
      operationId: getV1MacroRegimeLatest
      tags:
      - Macro
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Macro snapshot or history.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid input — fehlt Pflichtfeld oder Wert außerhalb des erlaubten Bereichs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthenticated — kein gültiger Bearer-Token im Authorization-Header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Tier-Insufficient — Endpoint braucht höheren API-Tier. Response enthält upgrade_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not-Found — Resource existiert nicht oder gehört nicht dem aktuellen User.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate-Limit überschritten — Tier-Quota (hourly/daily) oder Per-Endpoint-Quota erreicht. Retry-After-Header gesetzt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Upstream-Failure — Datenquelle nicht erreichbar (Binance, EODHD, etc.).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-min-tier: free
      x-data-source: FRED® (Federal Reserve Bank of St. Louis) — fred.stlouisfed.org; OECD CLI/CCI © OECD CC BY 4.0 distributed via FRED
  /api/v1/macro/regime/history:
    get:
      summary: Macro Regime timeline (history)
      description: Timeline of composite_score + matrix_quadrant + tier1/tier5 scores over N days (default 90, max 365). Useful for plotting regime path and 2D-matrix history clouds. [Free tier]
      operationId: getV1MacroRegimeHistory
      tags:
      - Macro
      security:
      - bearerAuth: []
      parameters:
      - name: days
        in: query
        description: History window in days (1-365, default 90).
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 365
          default: 90
      responses:
        '200':
          description: Macro snapshot or history.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid input — fehlt Pflichtfeld oder Wert außerhalb des erlaubten Bereichs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthenticated — kein gültiger Bearer-Token im Authorization-Header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Tier-Insufficient — Endpoint braucht höheren API-Tier. Response enthält upgrade_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not-Found — Resource existiert nicht oder gehört nicht dem aktuellen User.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate-Limit überschritten — Tier-Quota (hourly/daily) oder Per-Endpoint-Quota erreicht. Retry-After-Header gesetzt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Upstream-Failure — Datenquelle nicht erreichbar (Binance, EODHD, etc.).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-min-tier: free
      x-data-source: FRED® (Federal Reserve Bank of St. Louis) — fred.stlouisfed.org; OECD CLI/CCI © OECD CC BY 4.0 distributed via FRED
  /api/v1/macro/btc-correlations/latest:
    get:
      summary: BTC × Macro Correlations (latest)
      description: 'Pre-aggregated, weekly-computed correlations between Bitcoin and 13 macro components. Returns quadrant_performance (BTC return stats per 2D-matrix quadrant), component_correlations (Pearson 90d/1y/5y — a window is null when the joined daily sample does not reach its start; sample_size_days is the actual basis + quartile-performance per macro component; independent_obs = independent 30-day windows behind the quartile means), asset_correlations (Pearson per asset + per quadrant; assets: dxy plus tokenized on-venue proxies paxg/spyb/qqqb — proxies carry tracking noise vs. the underlying, and windows the vehicle history does not cover are null with data_start_date as the reason; the ETF proxies listed on Binance mid-2026, so their windows fill in over time — 90d first), current_quadrant, computed_at. Window labels are upper bounds — sample_size_days / data_start_date carry the actual basis. correlation_basis says what each block correlates (component LEVEL vs. BTC daily return; asset return vs. return — which is why dxy shows two different values), series names each source (dxy = FRED DTWEXBGS broad dollar index, not ICE DXY). Historical analysis only — not investment advice. [Free tier]'
      operationId: getV1MacroBtcCorrelationsLatest
      tags:
      - Macro
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Macro snapshot or history.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid input — fehlt Pflichtfeld oder Wert außerhalb des erlaubten Bereichs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthenticated — kein gültiger Bearer-Token im Authorization-Header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Tier-Insufficient — Endpoint braucht höheren API-Tier. Response enthält upgrade_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not-Found — Resource existiert nicht oder gehört nicht dem aktuellen User.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate-Limit überschritten — Tier-Quota (hourly/daily) oder Per-Endpoint-Quota erreicht. Retry-After-Header gesetzt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Upstream-Failure — Datenquelle nicht erreichbar (Binance, EODHD, etc.).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-min-tier: free
      x-data-source: FRED® (Federal Reserve Bank of St. Louis) — fred.stlouisfed.org; OECD CLI/CCI © OECD CC BY 4.0 distributed via FRED
  /api/v1/macro/calendar:
    get:
      summary: Macro calendar — US CPI releases and FOMC decisions
      description: 'When is the next US CPI release, when does the Fed decide? Dates from the BLS release schedule (CPI, 08:30 New York, reference_period = month the report covers) and the Fed FOMC calendar (date = statement day, 14:00 New York; sep = meeting with Summary of Economic Projections, null when the source does not mark it yet; tentative flag), each with time_utc (daylight saving applied), status (upcoming/past), source_url and read_at. Default: upcoming events; from lists from that day including about the last 12 months. coverage gives the catalog range per kind and CPI months that were never published. A date outside the catalog is an error, not an empty list. Dates only — no price reaction, no consensus forecasts. MCP: arena_get_macro_calendar. [Free tier]'
      operationId: getV1MacroCalendar
      tags:
      - Macro
      security:
      - bearerAuth: []
      parameters:
      - name: kind
        in: query
        required: false
        schema:
          type: string
          enum:
          - cpi
          - fomc
        description: cpi or fomc (default both).
      - name: from
        in: query
        required: false
        schema:
          type: string
          format: date
        description: 'First day. Default: upcoming events only.'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 6
        description: Maximum number of events.
      responses:
        '200':
          description: events[] (kind, date, time_et, time_utc, status, reference_period | meeting_start, sep, tentative, note, source_url, read_at), coverage, definition, sources[], note.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid input — fehlt Pflichtfeld oder Wert außerhalb des erlaubten Bereichs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthenticated — kein gültiger Bearer-Token im Authorization-Header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Tier-Insufficient — Endpoint braucht höheren API-Tier. Response enthält upgrade_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not-Found — Resource existiert nicht oder gehört nicht dem aktuellen User.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate-Limit überschritten — Tier-Quota (hourly/daily) oder Per-Endpoint-Quota erreicht. Retry-After-Header gesetzt.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Upstream-Failure — Datenquelle nicht erreichbar (Binance, EODHD, etc.).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-min-tier: free
      x-data-source: U.S. Bureau of Labor Statistics (CPI release schedule) and Board of Governors of the Federal Reserve System (FOMC calendar) — public domain
components:
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      - message
      properties:
        error:
          type: string
          enum:
          - invalid_input
          - unauthenticated
          - tier_insufficient
          - not_found
          - rate_limited
          - upstream_failed
          - compute_failed
          - internal
          description: Stable error-code; map to client-side handling.
        message:
          type: string
          description: Human-readable error message.
        required_tier:
          type:
          - string
          - 'null'
          enum:
          - api_pro
          - api_power
          - null
        current_tier:
          type:
          - string
          - 'null'
          enum:
          - free
          - api_pro
          - api_power
          - null
        upgrade_url:
          type:
          - string
          - 'null'
          format: uri
        retry_after_seconds:
          type:
          - integer
          - 'null'
        details:
          type:
          - object
          - 'null'
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API-Key
      description: Get a Free-tier key at https://tradingstrategies.work/dashboard/account/api-keys
externalDocs:
  description: Developer landing + curl examples
  url: https://tradingstrategies.work/api