GETAvailable
Backtest of the BTC signal
Backtest of the BTC signal
GET
/api/indices/btc-signal/backtestRequest
Query parameters
| Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
| days | integer | Optional | 180 | ≥ 30 · ≤ 372 | Look-back window in days. Example: 180 |
Example request
curl -s "https://www.coinboss.com/api/indices/btc-signal/backtest?days=180"Response fields
The field table is generated from real responses, so it lists exactly what the endpoint returns. Paths use a[] for array items and {*} for objects keyed by a dynamic name such as a coin or an exchange.
| Field | Type | Unit | Description |
|---|---|---|---|
| success | boolean | — | true when the request succeeded. On failure the body is `{ success: false, code, error, request_id }`. |
| dim | string | — | Dimension that was backtested (`liq`, the liquidation score). |
| days | number | — | Daily values or number of days. |
| n | number | — | Number of items counted. |
| hits | number | count | Days on which the direction predicted by the score matched the next day's price direction. |
| accuracy | number | % | `hits` ÷ `n` × 100. |
| strongN | number | count | Days whose absolute score was 50 or more. |
| strongAccuracy | number | % | Hit rate on the `strongN` days only. |
| baseline | number | % | Coin-flip reference for comparison (50). |
| samples | array | — | Number of samples. |
| samples[] | object | — | Number of samples. |
| samples[].d | string | — | Calendar date (UTC). |
| samples[].score | number | — | Score. |
| samples[].nextRet | number | % | Open-to-close price change of BTC on the following day. |
| samples[].pred | number | — | Predicted direction from the sign of the score: 1 up, −1 down, 0 none. |
| samples[].actual | number | — | Actual direction from the sign of `nextRet`: 1 up, −1 down, 0 flat. |
| samples[].hit | boolean | — | true when `pred` is not 0 and equals `actual`. |
Generated 2026-11-11 23:01 UTC from 1 real responses.
Example response
/api/indices/btc-signal/backtest?days=180 · Real response captured 2026-11-13 04:03:35 UTC. Long arrays and maps are shortened for display: samples had 60 items.
- "success"true
- "dim""liq"
- "days"180
- "n"167
- "hits"81
- "accuracy"48.5
- "strongN"93
- "strongAccuracy"43
- "baseline"50
- "samples"
Details
- Authentication
- None. Public endpoint.
- Rate limit
- 1200 requests per minute per IP
- Server cache
- 10m
- Edge micro-cache
- 10s
- Update frequency
- recomputed on request (10 min cache)
- Window
- last 180 days by default (`days` 30-372)
- Data sources
- In-house backtest of the liquidation-imbalance signal against next-day BTC direction, using self-collected exchange liquidations and exchange daily klines.
- Exchange coverage
- BTC only; covers the liquidation dimension only (other five dimensions are not backtested); history limited to the period the liquidation collectors have been running.
- Sorting
- date ascending (last 60 samples returned)
- Units
- accuracy in percent; sample scores -100..+100
- Method
- For each day, sign of (short liquidations - long liquidations) / total is compared with the next daily candle direction; days with under 1M USD of liquidations are skipped; 'strong' accuracy uses |score| >= 50.
- Timestamps
- Unix epoch milliseconds (UTC) unless the field description says otherwise
- Response format
- json
- Stability
- Stable
Live status
AvailableChecked 2026-11-13 04:03:35 UTCHTTP 2001 msSchema matchesNewest data point 28.1h old
Availability, last 30 days
99.76% of 409 checks passed
Errors
Failed calls share one shape on every endpoint. The full list is on the errors page. Errors and rate limits →
| Code | HTTP | Meaning | What to do |
|---|---|---|---|
| INVALID_PARAM | 400 | A required parameter is missing or a value is not accepted. `param` names the parameter when it is known. | Do not retry unchanged; fix the request. |
| UNAUTHORIZED | 401 | The `CB-API-KEY` header was sent but the key is unknown or revoked. Public data needs no key — drop the header or use a valid key. | Do not retry unchanged. |
| FORBIDDEN | 403 | The route is not part of the public API (internal or account-only). | Do not retry. |
| NOT_FOUND | 404 | Unknown route, or the requested coin / exchange / fund does not exist. | Do not retry; check the path and identifiers against the catalog. |
| RATE_LIMITED | 429 | More requests than the per-minute limit. `Retry-After` gives the seconds to wait. | Wait for `Retry-After`, then retry with backoff. |
| INTERNAL | 500 | Unexpected server error. The message is generic by design; quote `request_id` when reporting it. | Retry once after a few seconds; report it with the request id if it persists. |
| UPSTREAM_FAILED | 503 | The data source behind this endpoint did not answer in time. No stale or substitute numbers are returned in its place. | Retry with backoff; check the status page. |
| UNAVAILABLE | 501 / 503 | The dataset is temporarily not ready (cache warming) or the endpoint has no lawful public source yet. | Retry later; the catalog marks endpoints that are unavailable by design. |
| REQUEST_FAILED | 200 | Some older endpoints answer HTTP 200 with `success: false`. Always check `success`, not only the HTTP status. | Depends on the message; treat as a failed request. |
Try it
GET
/api/indices/btc-signal/backtestAvailableParameters
integer · default 180 · min 30 · max 372 — Look-back window in days.
Request URL
https://www.coinboss.com/api/indices/btc-signal/backtest?days=180Choose an endpoint and press “Send request”. The response, headers and timing will appear here.
More in this category
- AHR999 accumulation indicator series /api/indicators/ahr999
- Bitcoin bubble index /api/indicators/bitcoin-bubble
- Full BTC daily close history /api/indicators/btc-history
- Bull-market peak signal checklist /api/indicators/bull-peak-signals
- CBBI bull-run composite index /api/indicators/cbbi
- Derivatives risk index (CoinBoss method) /api/indicators/cdri
- Derivatives composite index (CoinBoss method) /api/indicators/cgdi
- BTC correlation with gold / S&P 500 /api/indicators/correlation
- Correlation matrix of major assets /api/indicators/correlation-matrix
- Crypto legal status by country /api/indicators/crypto-legality
- Cycle-top valuation bands /api/indicators/cycle-caps
- BTC price doubling-time series /api/indicators/doubling-time
- Google search-interest trend /api/indicators/google-trends
- Macro series /api/indicators/macro-series
- Price-forecast model output /api/indicators/price-forecast
- Drawdown-from-ATH series /api/indicators/price-no-turning-back
- Reddit Bitcoin subreddit subscriber count /api/indicators/reddit-subs
- Wikipedia page views /api/indicators/wikipedia-pageviews
- Altcoin season index (CoinBoss method) /api/indices/altseason
- Bottom radar /api/indices/bottom-radar
- Bottom-radar historical case study /api/indices/bottom-radar/case-0819
- BTC multi-factor signal dashboard /api/indices/btc-signal
- Backtest of the BTC signal /api/indices/btc-signal/backtest
- Fear & Greed index /api/indices/fear-greed
- Fear & Greed index (current and history) /api/market/fear-greed
- Signal backtest results /api/signal/backtest/:coin
- Signal monitor dashboard /api/signal/monitor/:coin