Backtesting Arena Custom Reports API
Asynchronous PDF + Excel reports. Quote → Stripe checkout (Web) → poll status → download. [API Pro tier and up]
Asynchronous PDF + Excel reports. Quote → Stripe checkout (Web) → poll status → download. [API Pro tier and up]
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/tradingstrategies-work:tradingstrategies-work-custom-reports-api"
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.
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: 3.2.0
info:
title: Backtesting Arena — Public Custom Reports 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: Custom Reports
description: Asynchronous PDF + Excel reports. Quote → Stripe checkout (Web) → poll status → download. [API Pro tier and up]
paths:
/api/v1/reports/quote:
post:
summary: Quote a Custom Report
description: Berechnet n_viable Pairs für Universe + Period, returnt Preis (n × 0,10 €, geclampt 14,99-49,99 €). Pre-Checkout-Validation. [API Pro tier]
operationId: postV1ReportsQuote
tags:
- Custom Reports
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- universe_id
- period
properties:
universe_id:
type: string
description: Universe id, e.g. top-50-crypto.
period:
type: string
enum:
- 1y
- 2y
- 4y
- 8y
interval:
type: string
enum:
- 1d
- 1w
- 1M
default: 1d
discount_code:
type:
- string
- 'null'
description: Optional 20%-Retention-Code.
responses:
'200':
description: Quote with price, n_viable, viability_filter_summary.
'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: api_pro
/api/v1/reports/pair-pool:
get:
summary: List eligible pairs for a universe + period
description: Returns the post-filter pair list (alive pairs with sufficient listing history). [API Pro tier]
operationId: getV1ReportsPairPool
tags:
- Custom Reports
security:
- bearerAuth: []
parameters:
- name: universe_id
in: query
required: true
schema:
type: string
- name: period
in: query
required: true
schema:
type: string
enum:
- 1y
- 2y
- 4y
- 8y
responses:
'200':
description: Eligible pair list.
'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: api_pro
/api/v1/reports/my-reports:
get:
summary: List your custom reports
description: 'Lifecycle: pending_payment → queued → running → generating → success/failed. Returns Job-Liste mit Status + Download-Token. [API Pro tier]'
operationId: getV1ReportsMyReports
tags:
- Custom Reports
security:
- bearerAuth: []
responses:
'200':
description: Report jobs list.
'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: api_pro
/api/v1/reports/jobs/{jobId}:
get:
summary: Get report job status
description: Polling-Endpoint. Returns current status, progress (slices done / total), download-token wenn fertig. [API Pro tier]
operationId: getV1ReportJobStatus
tags:
- Custom Reports
security:
- bearerAuth: []
parameters:
- name: jobId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Job status.
'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.
'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: api_pro
/api/v1/reports/schedules:
get:
summary: List your report schedules
description: 'Scheduled reports (M3): saved report definitions with a cadence. Each due run creates a normal report job (schedule_id set) that resolves its own period window and universe at run time. [API Pro tier]'
operationId: getV1ReportSchedules
tags:
- Custom Reports
security:
- bearerAuth: []
responses:
'200':
description: Schedules list (id, strategy, universe_tier, interval, period_label, cadence, next_due_at, enabled, run_count, last_job_id).
'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: api_pro
post:
summary: Create a report schedule (admin accounts, v1)
description: 'Same definition as a quote (strategy, universeTier, interval, periodLabel, filterConfig, strategyParams) plus cadence weekly or monthly and optional firstRunAt (ISO). Validated like a purchase incl. one universe resolution (n_viable > 0). v1: creation is limited to admin accounts — plan binding is pending. [API Pro tier + admin]'
operationId: postV1ReportSchedules
tags:
- Custom Reports
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- strategy
- universeTier
- interval
- periodLabel
- cadence
properties:
strategy:
type: string
universeTier:
type: string
enum:
- top-10
- top-50
- top-100
- top-250
- custom
customPairs:
type: array
items:
type: string
interval:
type: string
enum:
- 1d
- 1w
- 1M
periodLabel:
type: string
enum:
- last-2-years
- last-5-years
- since-2020
- maximum
cadence:
type: string
enum:
- weekly
- monthly
firstRunAt:
type: string
format: date-time
description: 'Default: next runner tick.'
email:
type: string
description: 'Recipient. Default: profile email.'
filterConfig:
type: object
strategyParams:
type: object
responses:
'200':
description: Created schedule + preview (n_viable, first_run_at, second_run_at).
'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: api_pro
/api/v1/reports/schedules/{scheduleId}:
patch:
summary: Pause or resume a schedule
operationId: patchV1ReportSchedule
tags:
- Custom Reports
security:
- bearerAuth: []
parameters:
- name: scheduleId
in: path
required: true
description: Schedule id (UUID) from GET /api/v1/reports/schedules. Only your own schedules resolve; others return 404.
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- enabled
properties:
enabled:
type: boolean
responses:
'200':
description: Updated schedule.
'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.
'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: api_pro
delete:
summary: Delete a schedule
description: Ends the definition. Already generated reports stay (their schedule_id is set to null).
operationId: deleteV1ReportSchedule
tags:
- Custom Reports
security:
- bearerAuth: []
parameters:
- name: scheduleId
in: path
required: true
description: Schedule id (UUID) from GET /api/v1/reports/schedules. Only your own schedules resolve; others return 404.
schema:
type: string
format: uuid
responses:
'200':
description: Deleted.
'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.
'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: api_pro
/api/v1/reports/{token}/download:
get:
summary: Download a finished Custom Report
description: Returns PDF binary or Excel XLSX depending on `?format=`. Token-based, signed URL, 30-day TTL. [API Pro tier]
operationId: getV1ReportDownload
tags:
- Custom Reports
security:
- bearerAuth: []
parameters:
- name: token
in: path
required: true
schema:
type: string
- name: format
in: query
schema:
type: string
enum:
- pdf
- xlsx
default: pdf
responses:
'200':
description: PDF or XLSX binary.
content:
application/pdf:
schema:
type: string
format: binary
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
schema:
type: string
format: binary
'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: Token unknown or expired.
'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: api_pro
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