TraderSpy Market data API

The Market data API from TraderSpy — 4 operation(s) for market data.

GitHub OpenAPI

Operations 4

GET /v1/market/prices Live prices #
GET /v1/market/candles Candles (OHLCV) #
GET /v1/market/symbols Tracked symbols #
GET /v1/market/derivatives Funding & open interest #

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/traderspy-app:traderspy-app-market-data-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

traderspy-app-market-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TraderSpy Signals Market data API
  version: 1.0.0
  description: 'Read-only crypto futures market data: AI signals, smart-money positioning, prices, candles, derivatives, technical indicators, a screener and condition backtests; and, for a key you allow to, your own strategies and the alerts they sent. Nothing else from your account, and no trading. Every request counts as one call against the plan of the key’s account. A key can be restricted to IP addresses (for servers) or to websites (for web pages), and capped per day.'
  x-docs: https://traderspy.app/api
servers:
- url: https://api.traderspy.app
security:
- bearerKey: []
- headerKey: []
tags:
- name: Market Data
paths:
  /v1/market/prices:
    get:
      operationId: marketPrices
      summary: Live prices
      description: Last price, 24h high/low, volume and change for up to 20 futures symbols. Same data as the MCP tool `get_price`.
      tags:
      - Market Data
      parameters:
      - name: symbols
        in: query
        required: true
        description: Comma-separated symbols; a bare `BTC` reads as `BTCUSDT`.
        schema:
          type: string
          examples:
          - BTCUSDT,ETHUSDT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid_request`: A parameter is missing, unknown or out of range. `details` names it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: '`missing_api_key`: No API key was sent. Send it as `Authorization: Bearer tspy_…` or `X-API-Key`. `invalid_api_key`: The key does not exist, was revoked, or its account is closed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '`plan_not_included`: The account’s plan does not include API access. `ip_not_allowed`: The key only works from the IP addresses set on it; this request came from another one. `origin_not_allowed`: The key only works from the websites set on it; this request named another website, or none.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: No such endpoint, or the record (signal, trader) does not exist. `no_data`: TraderSpy has no data for that symbol or timeframe.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '`rate_limited`: More than the per-minute limit. Wait `Retry-After` seconds. `daily_limit_reached`: The plan’s calls for this UTC day are used. Resets at 00:00 UTC. `key_daily_limit_reached`: The key’s own daily cap is used (the account may have calls left). Resets at 00:00 UTC.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: '`internal_error`: Something failed on our side. Quote the `requestId` to support.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '`service_unavailable`: A data source did not answer in time. Retry after `Retry-After` seconds; the call was not counted.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/market/candles:
    get:
      operationId: marketCandles
      summary: Candles (OHLCV)
      description: OHLCV candles of a futures symbol, oldest first; the last one may still be open. Same data as the MCP tool `get_candles`.
      tags:
      - Market Data
      parameters:
      - name: symbol
        in: query
        required: true
        description: Trading pair.
        schema:
          type: string
      - name: interval
        in: query
        required: false
        description: Candle timeframe.
        schema:
          type: string
          enum:
          - 1m
          - 5m
          - 15m
          - 1h
          - 4h
          - 1d
          default: 1h
      - name: limit
        in: query
        required: false
        description: Candles to return (newest N).
        schema:
          type: integer
          minimum: 1
          maximum: 500
          default: 100
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid_request`: A parameter is missing, unknown or out of range. `details` names it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: '`missing_api_key`: No API key was sent. Send it as `Authorization: Bearer tspy_…` or `X-API-Key`. `invalid_api_key`: The key does not exist, was revoked, or its account is closed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '`plan_not_included`: The account’s plan does not include API access. `ip_not_allowed`: The key only works from the IP addresses set on it; this request came from another one. `origin_not_allowed`: The key only works from the websites set on it; this request named another website, or none.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: No such endpoint, or the record (signal, trader) does not exist. `no_data`: TraderSpy has no data for that symbol or timeframe.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '`rate_limited`: More than the per-minute limit. Wait `Retry-After` seconds. `daily_limit_reached`: The plan’s calls for this UTC day are used. Resets at 00:00 UTC. `key_daily_limit_reached`: The key’s own daily cap is used (the account may have calls left). Resets at 00:00 UTC.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: '`internal_error`: Something failed on our side. Quote the `requestId` to support.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '`service_unavailable`: A data source did not answer in time. Retry after `Retry-After` seconds; the call was not counted.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/market/symbols:
    get:
      operationId: marketSymbols
      summary: Tracked symbols
      description: Every futures symbol TraderSpy keeps live candles for. Same data as the MCP tool `get_tracked_symbols`.
      tags:
      - Market Data
      parameters: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid_request`: A parameter is missing, unknown or out of range. `details` names it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: '`missing_api_key`: No API key was sent. Send it as `Authorization: Bearer tspy_…` or `X-API-Key`. `invalid_api_key`: The key does not exist, was revoked, or its account is closed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '`plan_not_included`: The account’s plan does not include API access. `ip_not_allowed`: The key only works from the IP addresses set on it; this request came from another one. `origin_not_allowed`: The key only works from the websites set on it; this request named another website, or none.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: No such endpoint, or the record (signal, trader) does not exist. `no_data`: TraderSpy has no data for that symbol or timeframe.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '`rate_limited`: More than the per-minute limit. Wait `Retry-After` seconds. `daily_limit_reached`: The plan’s calls for this UTC day are used. Resets at 00:00 UTC. `key_daily_limit_reached`: The key’s own daily cap is used (the account may have calls left). Resets at 00:00 UTC.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: '`internal_error`: Something failed on our side. Quote the `requestId` to support.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '`service_unavailable`: A data source did not answer in time. Retry after `Retry-After` seconds; the call was not counted.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/market/derivatives:
    get:
      operationId: marketDerivatives
      summary: Funding & open interest
      description: Funding rate, open interest and positioning for Binance USDⓈ-M perpetuals, with plain-language notes. Same data as the MCP tool `get_derivatives`.
      tags:
      - Market Data
      parameters:
      - name: symbols
        in: query
        required: true
        description: Up to 5 comma-separated symbols.
        schema:
          type: string
          examples:
          - BTCUSDT,ETHUSDT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '400':
          description: '`invalid_request`: A parameter is missing, unknown or out of range. `details` names it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: '`missing_api_key`: No API key was sent. Send it as `Authorization: Bearer tspy_…` or `X-API-Key`. `invalid_api_key`: The key does not exist, was revoked, or its account is closed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '`plan_not_included`: The account’s plan does not include API access. `ip_not_allowed`: The key only works from the IP addresses set on it; this request came from another one. `origin_not_allowed`: The key only works from the websites set on it; this request named another website, or none.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: '`not_found`: No such endpoint, or the record (signal, trader) does not exist. `no_data`: TraderSpy has no data for that symbol or timeframe.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '`rate_limited`: More than the per-minute limit. Wait `Retry-After` seconds. `daily_limit_reached`: The plan’s calls for this UTC day are used. Resets at 00:00 UTC. `key_daily_limit_reached`: The key’s own daily cap is used (the account may have calls left). Resets at 00:00 UTC.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: '`internal_error`: Something failed on our side. Quote the `requestId` to support.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '`service_unavailable`: A data source did not answer in time. Retry after `Retry-After` seconds; the call was not counted.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - requestId
          properties:
            code:
              type: string
              enum:
              - invalid_request
              - missing_api_key
              - invalid_api_key
              - plan_not_included
              - ip_not_allowed
              - origin_not_allowed
              - strategies_not_allowed
              - not_found
              - no_data
              - rate_limited
              - daily_limit_reached
              - key_daily_limit_reached
              - body_too_large
              - internal_error
              - service_unavailable
            message:
              type: string
            requestId:
              type: string
            details:
              type: array
              items:
                type: object
                properties:
                  param:
                    type: string
                  message:
                    type: string
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer tspy_…`. Never in the URL.'
    headerKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: The same key in its own header.