TraderSpy Analysis API
The Analysis API from TraderSpy — 3 operation(s) for analysis.
The Analysis API from TraderSpy — 3 operation(s) for analysis.
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/traderspy-app:traderspy-app-analysis-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: TraderSpy Signals Analysis 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: Analysis
paths:
/v1/technicals:
get:
operationId: technicalsGet
summary: Technical indicators
description: Up to 19 indicators with history, zones and crossovers, for up to 3 symbols × 3 timeframes, plus a bias summary. Same data as the MCP tool `get_technical_indicators`.
tags:
- Analysis
parameters:
- name: symbol
in: query
required: false
description: One trading pair (or use `symbols`).
schema:
type: string
- name: symbols
in: query
required: false
description: Up to 3 pairs in one call; the answer then carries one entry per symbol in `data`.
schema:
type: string
examples:
- BTCUSDT,ETHUSDT
- name: interval
in: query
required: false
description: Timeframe (ignored when `intervals` is given).
schema:
type: string
enum:
- 1m
- 5m
- 15m
- 1h
- 4h
- 1d
default: 1h
- name: intervals
in: query
required: false
description: Up to 3 timeframes in one call, with a multi-timeframe `confluence` verdict.
schema:
type: string
examples:
- 1h,4h,1d
- name: indicators
in: query
required: false
description: 'Indicators to compute (default: rsi, macd, ema, bollinger).'
schema:
type: string
examples:
- rsi,macd,levels
- name: history
in: query
required: false
description: Prior values per indicator in `series`.
schema:
type: integer
minimum: 0
maximum: 20
default: 5
- name: periods
in: query
required: false
description: Period overrides as a JSON object, e.g. `{"rsi":7,"ema":[9,21,55]}`.
schema:
type: string
contentMediaType: application/json
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/screener:
post:
operationId: screenerRun
summary: Screener
description: Scan the most-traded symbols (or your own list) for up to 3 AND-ed conditions in one call. Same data as the MCP tool `screen_symbols`.
tags:
- Analysis
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'
'413':
description: '`body_too_large`: The JSON body is over 32 KB (a screener or backtest body is under 4 KB).'
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'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
interval:
type: string
enum:
- 1m
- 5m
- 15m
- 1h
- 4h
- 1d
description: Timeframe to evaluate on.
default: 4h
conditions:
type: array
items:
$ref: '#/components/schemas/Condition'
maxItems: 3
description: 'Up to 3 conditions, AND-ed: `{ "metric", "op", "value", "period"?, "period2"? }`. `lt`/`gt` compare the latest bar; `crossAbove`/`crossBelow` are one-bar events. Examples: RSI oversold `{"metric":"rsi","op":"lt","value":30}`; above the 200 EMA `{"metric":"priceVsEma","op":"gt","value":0,"period":200}`; golden cross `{"metric":"emaSpread","op":"crossAbove","value":0,"period":50,"period2":200}`.'
symbols:
type: array
items:
type: string
maxItems: 100
description: Explicit symbols to scan; omit to scan the most-traded. Without conditions it is a comparison table.
universe:
type: integer
minimum: 5
maximum: 100
description: How many of the most-traded symbols to scan when `symbols` is omitted.
default: 50
assets:
type: string
enum:
- all
- crypto
description: 'Which perpetuals the most-traded list holds when `symbols` is omitted: `all`, or `crypto` to leave out the stock, commodity and index perpetuals.'
default: all
limit:
type: integer
minimum: 1
maximum: 50
description: Rows to return.
default: 20
sortBy:
type: string
enum:
- volume
- change24h
- metric
description: 'Default: `metric` with conditions, else `volume`.'
sortOrder:
type: string
enum:
- desc
- asc
description: Sort direction.
default: desc
example:
interval: 4h
conditions:
- metric: rsi
op: lt
value: 35
universe: 50
limit: 10
/v1/backtest:
post:
operationId: backtestRun
summary: Backtest a condition
description: 'What price did after a condition on one symbol: occurrences, forward returns, win rate and the edge over the baseline, also split by trend phase (above or below its 200-candle average). Same data as the MCP tool `backtest_condition`.'
tags:
- Analysis
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'
'413':
description: '`body_too_large`: The JSON body is over 32 KB (a screener or backtest body is under 4 KB).'
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'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- symbol
- conditions
properties:
symbol:
type: string
description: Trading pair (`BTCUSDT`, or a bare `BTC`).
interval:
type: string
enum:
- 1m
- 5m
- 15m
- 1h
- 4h
- 1d
description: Candle timeframe.
default: 4h
conditions:
type: array
items:
$ref: '#/components/schemas/Condition'
maxItems: 3
description: 'Up to 3 conditions, AND-ed: `{ "metric", "op", "value", "period"?, "period2"? }`. `lt`/`gt` compare the latest bar; `crossAbove`/`crossBelow` are one-bar events. Examples: RSI oversold `{"metric":"rsi","op":"lt","value":30}`; above the 200 EMA `{"metric":"priceVsEma","op":"gt","value":0,"period":200}`; golden cross `{"metric":"emaSpread","op":"crossAbove","value":0,"period":50,"period2":200}`.'
horizons:
type: array
items:
type: integer
minimum: 1
maximum: 200
minItems: 1
maxItems: 4
description: Bars ahead to measure returns over (default ≈ 4h / 1d / 3d for the interval).
example:
symbol: BTCUSDT
interval: 4h
conditions:
- metric: rsi
op: lt
value: 30
components:
schemas:
Condition:
type: object
additionalProperties: false
required:
- metric
- op
- value
properties:
metric:
type: string
enum:
- rsi
- stochastic
- cci
- mfi
- williamsR
- adx
- roc
- macdHistogram
- atrPct
- volumeRatio
- bbPercentB
- bbWidthPct
- priceVsEma
- emaSpread
- supertrend
- changePct
- price
op:
type: string
enum:
- lt
- gt
- crossAbove
- crossBelow
value:
type: number
period:
type: integer
minimum: 2
maximum: 200
period2:
type: integer
minimum: 2
maximum: 200
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.