Backtesting Arena

Backtesting Arena

⚔️Public API · Stage 1

BTC Cycle Signals API

4 public endpoints free · Power features via API key or x402 wallet payment

Daily 0-100 heat score. BTC cycle phase. Fear & Greed proxy. Plus: REST + MCP for Bearer-auth consumers and x402 pay-per-call for autonomous agents. Backtests incl. universe mode (50 pairs in one call).

What you build with it

🤖

Trading Bot

Use BTC cycle phase as entry filter for your bot. Long-bias only during "expansion" or "recovery".

const cycle = await fetch('/api/btc-cycle?latest=true').then(r => r.json())
if (['expansion', 'recovery'].includes(cycle.latest.signal)) {
  placeLongOrder()
}
💬

Discord Bot

Daily Arena Pulse embed in your community channel. Heat score + verdict in one call.

const pulse = await fetch('/api/arena-pulse/today').then(r => r.json())
channel.send({ embeds: [{
  title: `Arena Pulse ${pulse.date}: ${pulse.score}/100`,
  description: pulse.verdict_en,
  color: parseInt(pulse.color_hex.slice(1), 16),
}]})
📊

Dashboard Widget

F&G + Arena Pulse in one row. Perfect for personal dashboards or newsletter embeds.

const [pulse, fg] = await Promise.all([
  fetch('/api/arena-pulse/today').then(r => r.json()),
  fetch('/api/fear-greed').then(r => r.json()),
])
render({ heat: pulse.score, fg: fg.data[0].value })
🌐

Universe Backtest (Agent)

One strategy on up to 50 pairs in one call. Async via job polling (API key) or inline via x402 wallet payment ($0.50, max 10 pairs).

// AI-agent flow (no account, USDC on Base):
const res = await fetch('/api/v1/agent/backtests/universe', {
  method: 'POST', body: JSON.stringify({
    universe_id: 'crypto-top-10',
    strategy: 'rsi_sma', interval: '1d', date_from: '2023-01-01',
  })
})
// → HTTP 402, sign EIP-3009, retry → results inline

Endpoints

All endpoints accept CORS and return application/json. Header X-Backtesting-Arena: v1 in every response.

GET/api/arena-pulse/today

Arena Pulse — Today

Try it →

Daily 0-100 heat score for the crypto market, aggregated from 8 components (Bullmarket gauge, Fear & Greed, MVRV Z-score, 200-WMA distance, Mayer Multiple, Altcoin Season, funding rates, Hash Ribbons).

curl
curl https://tradingstrategies.work/api/arena-pulse/today
Example response
{
  "date": "2026-05-20",
  "score": 67,
  "band": "constructive",
  "label_en": "Constructive",
  "color_hex": "#10b981",
  "verdict_en": "Risk-on, but watch funding rates.",
  "components": [
    { "key": "fear_greed", "rawValue": "72", "earnedPoints": 14, "maxPoints": 15 },
    { "key": "mvrv_zscore", "rawValue": "2.8", "earnedPoints": 10, "maxPoints": 15 }
  ],
  "delta_7d": 4,
  "confidence": "high"
}
Cache: public, s-maxage=300Update: Daily at 07:55 UTCAuth: none
GET/api/arena-pulse/history?days=30

Arena Pulse — History

Try it →

N-day history of Arena Pulse scores for trend analysis. Default 30 days, max 365.

curl
curl https://tradingstrategies.work/api/arena-pulse/history?days=7
Example response
{
  "from": "2026-05-13",
  "to":   "2026-05-20",
  "days": 7,
  "snapshots": [
    { "date": "2026-05-13", "score": 63, "band": "constructive" },
    { "date": "2026-05-14", "score": 65, "band": "constructive" },
    { "date": "2026-05-15", "score": 64, "band": "constructive" },
    { "date": "2026-05-20", "score": 67, "band": "constructive" }
  ]
}
Cache: public, s-maxage=3600Update: Updated dailyAuth: none
GET/api/btc-cycle

BTC Cycle Phase

Try it →

Current Bitcoin cycle classification (accumulation / recovery / expansion / distribution / overheated) with 10 component indicators. Optional ?days=N for chart history.

curl
curl https://tradingstrategies.work/api/btc-cycle?latest=true
Example response
{
  "latest": {
    "date": "2026-05-20",
    "signal": "expansion",
    "raw_score": 58,
    "adj_score": 62,
    "z_score": 0.31,
    "components": {
      "mayer_multiple":     1.42,
      "weekly_rsi":         68.5,
      "ma200w_distance_pct": 187.3,
      "fear_greed":         72
    }
  }
}
Cache: force-dynamic (live read)Update: Recomputed daily at 02:00 UTCAuth: none
GET/api/fear-greed

Fear & Greed Index

Try it →

Server-side proxy to the alternative.me Fear & Greed Index. GDPR-compliant — your client never contacts alternative.me directly. Full historical series.

curl
curl https://tradingstrategies.work/api/fear-greed
Example response
{
  "name": "Fear and Greed Index",
  "data": [
    {
      "value": "72",
      "value_classification": "Greed",
      "timestamp": "1747699200",
      "time_until_update": "12345"
    },
    {
      "value": "68",
      "value_classification": "Greed",
      "timestamp": "1747612800"
    }
  ]
}
Cache: s-maxage=3600, stale-while-revalidate=7200Update: Live (1h cache)Auth: none

Beyond the free endpoints

For higher quotas, backtest triggers, strategy insights, and 21 on-chain series, there are two channels sharing the same code base.

🔑

REST + MCP — Bearer auth

Get a Free-tier key (sign-up without credit card). One subscription covers REST + MCP server (44 tools for Claude Desktop / Cursor). Pro €9.99/mo, Power €29.99/mo.

  • 21 BRK on-chain series (MVRV, SOPR, hash rate …)
  • Strategy + filter insights, sentiment, winners
  • Single + universe backtest (up to 50 pairs async)
  • Live subscriptions for signal / cycle / pulse alerts

x402 — pay-per-call, no account

Autonomous AI agents pay per request in USDC on Base. Server returns HTTP 402, agent signs EIP-3009 authorization, retries with X-PAYMENT header. Settles in 2-5s.

  • 8 snapshot endpoints — $0.01 USDC each
  • 5 insights endpoints — $0.05 USDC each
  • 3 backtest triggers — $0.10-$0.30 USDC
  • Universe-Express (max 10 pairs) — $0.50 USDC

Fair Use

  • Free for everyoneno API key, no signup, no setup fee.
  • Rate limit via cacheResponses are 5-60 min CDN-cached. Hammer requests barely hit our servers.
  • Attribution welcome"Powered by Backtesting Arena" if you integrate them is nice but not required.
  • Higher frequency or backtest data?Email us: info@tradingstrategies.work

Machine-Readable Discovery

For AI agents (LangChain, AutoGen, Vercel AI SDK, MCP clients) we provide machine-readable spec files.

What's Next

We are building an authenticated Public API with strategy-backtest triggers, custom reports, and an MCP server for Claude / Cursor. First endpoints (API Pro, €9.99/mo) are already live under /api/v1.

More background: Arena Pulse Dashboard · Market Pulse · Blog