Skip to main content
Loading market data…
GET/api/v1/indicators/rainbowHobbyist tier+ · 30 req/min

Rainbow-band classifier — distance-to-2Y-high proxy.

Approximation of the Rainbow Chart band using `price / 2Y rolling high` as the axis. A full log-regression fit is overkill for a status readout; this gives a stable band classification and is documented as a deliberate simplification.

Query parameters

All query parameters are optional unless marked required.

NameTypeRequiredDefaultDescription
assetstringoptionalBTC
Short alphabetic asset code.

Response shape

Always wrapped in the standard envelope. Nullable fields are explicitly marked — treat missing numeric data as a real data-source gap, not as an error.

data payloadtypescript
// Wrapped in the standard envelope:
// {
//   data: /* shape below */,
//   meta?: { total?: number; limit?: number; offset?: number; ... }
// }

{
  asset: string;
  signal: CycleSignal | null;
}

Example

Copy the curl, replace YOUR_KEY with a real key from your dashboard, and run.

Requestbash
curl -sS "http://localhost:3000/api/v1/indicators/rainbow"
Responsejson
{
  "data": {
    "asset": "BTC",
    "signal": {
      "key": "rainbow",
      "name": "Rainbow Band",
      "state": { "status": "neutral", "current": 0.72, "threshold": 1.0, "score": 1 },
      "available": true,
      "sparkline": [60000, 61200, 59800]
    }
  },
  "meta": { "total": 1, "asset": "BTC" }
}

Next

Check the error code reference, or get an API key to try the request against your own account.