Tapehall Backtest API

Backtest universe and runs

GitHub OpenAPI

Operations 3

GET /v1/backtest/universe Backtest Universe #
GET /v1/backtest/run Run Backtest #
GET /v1/backtest/batch Batch Backtest #

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/mrtrades-com:mrtrades-com-backtest-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

mrtrades-com-backtest-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tapehall Backtest API
  description: 'Crypto-native perp screener and charting API.


    **Auth**: Most endpoints accept `X-Api-Key` header. WebSocket endpoints use the `mtdp` subprotocol with API key.

    Tier ≥1 required for live streams (scan, screener, chart candles, chart DOM).


    **Rate limit**: per API key / session / IP sliding window (default 1200 cost units/min per key or session, 300/min per unauthenticated IP; heavy routes cost 10), max 16 concurrent requests per key. Over limit: 429 with Retry-After. Requests that have not started responding in 30s (90s heavy) get 504.'
  version: 1.0.4
tags:
- name: backtest
  description: Backtest universe and runs
paths:
  /v1/backtest/universe:
    get:
      tags:
      - backtest
      summary: Backtest Universe
      description: 'List available symbols (and venues) for backtesting.


        Returned data is derived from `instruments` so it reflects what the stack

        currently considers active.'
      operationId: backtest_universe_v1_backtest_universe_get
      parameters:
      - name: q
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Q
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 500
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Backtest Universe V1 Backtest Universe Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/backtest/run:
    get:
      tags:
      - backtest
      summary: Run Backtest
      description: 'Run an event-based backtest using our own feature+thesis scoring.


        Guardrails:

        - max_points bounds result size and DB load

        - days bounds unbounded lookbacks if start/end not provided'
      operationId: run_backtest_v1_backtest_run_get
      parameters:
      - name: symbol
        in: query
        required: true
        schema:
          type: string
          title: Symbol
      - name: venue
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Venue
      - name: source
        in: query
        required: false
        schema:
          type: string
          default: auto
          title: Source
      - name: thesis
        in: query
        required: false
        schema:
          type: string
          default: pump
          title: Thesis
      - name: interval_s
        in: query
        required: false
        schema:
          type: integer
          default: 60
          title: Interval S
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      - name: start
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Start
      - name: end
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: End
      - name: min_score
        in: query
        required: false
        schema:
          type: number
          default: 60.0
          title: Min Score
      - name: cooldown_bars
        in: query
        required: false
        schema:
          type: integer
          default: 12
          title: Cooldown Bars
      - name: horizons
        in: query
        required: false
        schema:
          type: string
          default: 12,60,180
          title: Horizons
      - name: max_points
        in: query
        required: false
        schema:
          type: integer
          default: 50000
          title: Max Points
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Run Backtest V1 Backtest Run Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/backtest/batch:
    get:
      tags:
      - backtest
      summary: Batch Backtest
      description: Run many backtests and return the top candidates (tier >= 1).
      operationId: batch_backtest_v1_backtest_batch_get
      parameters:
      - name: thesis
        in: query
        required: false
        schema:
          type: string
          default: pump
          title: Thesis
      - name: venue
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Venue
      - name: interval_s
        in: query
        required: false
        schema:
          type: integer
          default: 60
          title: Interval S
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      - name: min_score
        in: query
        required: false
        schema:
          type: number
          default: 60.0
          title: Min Score
      - name: cooldown_bars
        in: query
        required: false
        schema:
          type: integer
          default: 12
          title: Cooldown Bars
      - name: horizons
        in: query
        required: false
        schema:
          type: string
          default: 12,60,180
          title: Horizons
      - name: max_points
        in: query
        required: false
        schema:
          type: integer
          default: 50000
          title: Max Points
      - name: limit_symbols
        in: query
        required: false
        schema:
          type: integer
          default: 60
          title: Limit Symbols
      - name: top_k
        in: query
        required: false
        schema:
          type: integer
          default: 20
          title: Top K
      - name: min_events
        in: query
        required: false
        schema:
          type: integer
          default: 20
          title: Min Events
      - name: rank_horizon
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Rank Horizon
      - name: rank_by
        in: query
        required: false
        schema:
          type: string
          default: dir_mean
          title: Rank By
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Batch Backtest V1 Backtest Batch Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError