MMTMMT Docs
REST API

Stop Heatmap

Retrieve stop heatmap data in flat format.

Returns stop heatmap data in the flat format (FlatHeatmap).

This endpoint is flat-only and single-exchange only (no aggregated exchange requests). It is available only for hyperliquid and hyperliquid-xyz.

Authentication

API key via X-API-Key header.

Endpoint

GET /api/v1/stop_heatmap

Example

GET /api/v1/stop_heatmap?exchange=hyperliquid&symbol=btc/usd&tf=1m&from=1704067200&to=1704070800

Parameters

ParameterTypeRequiredDescription
exchangestringYesSingle exchange ID. Allowed values: hyperliquid, hyperliquid-xyz. Aggregated exchange strings are not supported.
symbolstringYesTrading pair with slash separator (e.g., btc/usd)
tfstringYesTimeframe (e.g., 1m, 5m, 1h)
fromint64YesStart timestamp (Unix seconds, inclusive)
toint64YesEnd timestamp (Unix seconds, exclusive)

Rate Limits

PropertyValue
Cost Multiplier5x
Max Points5,000

Same limits as /heatmap_sd.

Weight Calculation

Single-exchange only:

base_points = (to - from) / tf_seconds
weight = ceil(base_points / 1000) * 5

Response

{
  "data": [
    {
      "t": 1704067200,
      "pg": 10,
      "s": [100000, 250000, 500000, 300000, 150000, 200000, 350000, 180000],
      "lp": 42050.00,
      "si": 4,
      "minp": 41500.00,
      "maxp": 42500.00,
      "mins": 10000,
      "maxs": 500000
    }
  ],
  "exchange": "hyperliquid",
  "symbol": "btc/usd",
  "tf": "1m",
  "from": 1704067200,
  "to": 1704070800,
  "points": 60
}

Types

Encoding: Supports both JSON and CBOR. Use format=cbor query param or Accept: application/cbor header.

Response Envelope

FieldTypeDescription
dataFlatHeatmap[]Array of stop heatmap points
exchangestringExchange ID
symbolstringUnified symbol
tfstringTimeframe string
fromint64Start timestamp (Unix seconds)
toint64End timestamp (Unix seconds)
pointsintNumber of points returned

Response Type: FlatHeatmap

{"t": 1704067200, "pg": 10, "s": [100000, 250000, 500000], "lp": 42050.0, "si": 50, "minp": 41500.0, "maxp": 42500.0, "mins": 10000, "maxs": 1000000}
FieldTypeDescription
tint64Unix timestamp (seconds)
pgfloat64Price grouping/bucket size
s[]float64Size values (dense array)
lpfloat64Last traded price
siint64Split index (divides bids/asks)
minp, maxpfloat64Min/max price in range
mins, maxsfloat64Min/max size value

See Types for full details.

Errors

CodeHTTPDescription
INVALID_API_KEY401Missing or invalid API key
INVALID_EXCHANGE400Unknown/unsupported exchange ID, duplicate exchange in aggregate string, or non-alphabetical aggregate ordering
INVALID_SYMBOL400Unknown or unsupported trading symbol
INVALID_TIMEFRAME400Invalid timeframe format or outside allowed range
INVALID_PARAMS400Missing or invalid query parameters (including aggregated exchanges for this endpoint)
MAX_POINTS_EXCEEDED400Request exceeds 5,000 point limit
TIER_RESTRICTED403Request outside tier's allowed history range
RATE_LIMITED429Rate limit exceeded
TIMEOUT504Query exceeded 30 second timeout
INTERNAL_ERROR500Internal server error

On this page