ALT/Docs
Market data · v1OpenAPI

Developer documentation

Market intelligence,
with provenance.

The API reference for ALT’s approved market-data backend.

12documented operations
38approved instruments
0write operations
Public data. Private operations.

This site serves documentation. Public market-data examples need no token; private operations use an authorized local tunnel. This page does not send API requests or accept credentials.

Read-only Go API reference: eight existing private GET operations plus a separate public market-data process for approved summaries, snapshots and bounded real candles, and its local liveness probe. Private runtime source remains 8d08e4a; public source-file contract hashes are recorded separately. This document is a contract, not evidence of rollout or live freshness; deployment acceptance is recorded separately. All examples are synthetic. Financial execution and end-user/account APIs are not implemented.

Guide

Connect to the private API

This site documents the approved ALT Go market-data source 8d08e4a. It does not expose or proxy the backend and is not a continuously refreshed health monitor. The backend API binds to 127.0.0.1:8080 on its host; authorized operators use a local API tunnel or local development. The OpenAPI server is the local end of that tunnel. Browser Try it is disabled. All examples are frozen synthetic data. A prepared reference is not evidence of deployment or live acceptance.

Guide

Internal bearer authentication

All private-process /v1/ routes require Authorization: Bearer $ALT_READ_TOKEN. Set the credential privately in your local environment; never paste it into this site. The current credential is an internal development/read credential, not an end-user login or wallet/trading authority. Exactly one Authorization header is accepted, the Bearer prefix is case-sensitive, and invalid credentials receive 401 before private storage reads. /health and /ready are unauthenticated but remain behind the private network boundary. No browser CORS interface or client WebSocket API exists. The separate market-api process exposes only /v1/market-data/* without a bearer credential. Private routes remain unauthorized/unrouted; never embed the internal token in an app.

Guide

Public market data and candle coverage

The separate public process serves /v1/market-data/* on the stated public origin after deployment. It reads exact approved-generation ingested summaries/books/trades with SELECT-only storage. Provider candles use bounded intervals, actual OHLC strings and explicit missing ranges; no fabricated backfill or absent-data zeros. UI refreshes must preserve receivedAt, unknown source time, per-component stale state and forming-bar status. Context prices are mark prices, quote currency must not be inferred from collateral, funding is a signed hourly fraction, and OI quote is a mark valuation. The local /healthz does not establish readiness. Public egress requires one process owner and the verified 1000 + 180 <= 1200 shared-IP reserve; startup 61 seconds protects restarts. Cachehits never change source receipt/finality.

Guide

Freshness, identity and gaps

Use the exact coin identifier, market type, DEX and instrument generation. Seven spot instruments and 31 perps are explicitly approved; metadata validation cannot admit another market. Preserve decimal strings and distinguish exchangeTime from receivedAt. The default book freshness is 15 seconds and context freshness 120 seconds. /ready reports collection coverage; it can return 200 while researchReady is false or a particular book returns 503. Do not use retained data in a 503 response as fresh evidence. Spot funding/open interest are not applicable. Trades are observed-only; no endpoint promises complete historical coverage or reconstructs unobserved books. Current-book features expose sourceStale and receiptStale independently; either invalid/stale clock prevents a measurement. Feature quality=partial is a fresh quote-only success, not complete five-level depth. Feature values are explicit nulls on unavailable responses. The calculatedAt evaluation clock is not durable commit/availability evidence.

Guide

Current-book feature definitions

The l2-top5-v1 definition measures a single observed current-generation snapshot. Midpoint is (bestBid + bestAsk) / 2. Absolute spread is bestAsk - bestBid. Spread basis points are spread / midpoint × 10000. Five-level base depth sums the first five positive-size levels on each side; imbalance is (bidBaseDepth - askBaseDepth) / (bidBaseDepth + askBaseDepth). Original bids must be strictly descending and asks strictly ascending, with distinct positive prices and nonnegative sizes. Zero-size rows are excluded and counted. Empty, one-sided, crossed, locked, malformed or unsorted books produce unavailable values. A valid shorter book returns HTTP 200 quality=partial with quote/spread values and null depth quantities/imbalance. Prices and quantities use exact rational decimal calculations; ratios use 18 fractional places, nearest with halves away from zero. Visible depth is not total market liquidity or guaranteed execution. No additional feed, signing or execution authority is involved.

Guide

Request and error behavior

Only GET is supported; HEAD/OPTIONS return 405 with Allow: GET. Requests with a body return 400 unexpected_body; URIs over 2,048 characters return 414 uri_too_long. JSON responses set Cache-Control:no-store and X-Content-Type-Options:nosniff. The server bounds private request work to 12 seconds and uses an 8 KiB header limit. Unsupported markets/routes return 404, invalid queries 400, invalid private credentials 401, and unavailable data/services 503. Service failures are sanitized and contain no raw provider or database error. Unknown query keys are rejected on markets/book/context/trades/features; well-formed query keys on ingestion/status and all queries on health/ready are currently ignored. Retained observation and trade data can accompany 503.

Guide

Implemented API boundary

The eight private GET operations describe runtime 8d08e4a. Additional public summaries/snapshots/candles are a separately versioned contract with source-file SHA256 values; live rollout requires independent acceptance. Public reads include no wallet, account, balance, positions, signing, order submission or automation execution. All examples are synthetic; no API grants financial authority.

API reference

Every operation.

Request parameters, response shapes and unavailable states.

12 of 12

Health

GET/healthNo authentication

Process liveness

Checks that the API process can respond. It does not read PostgreSQL or establish feed, research, account or trading readiness. Query strings are ignored.

cURL (authorized SSM tunnel)Shell
curl --fail-with-body --silent --show-error \
  'http://127.0.0.1:8080/health'

Parameters

No parameters.

Responses

200API process is alive.

API process is alive.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic liveness response
{
  "status": "alive",
  "service": "alt-trading-api"
}
Response schema

Health

400Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unexpected_body
{
  "error": "unexpected_body"
}
invalid_query
{
  "error": "invalid_query"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

Error

405Only GET is implemented; HEAD and OPTIONS are not implemented.

Only GET is implemented; HEAD and OPTIONS are not implemented.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow

Allowed request method.

"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

Error

414Request URI exceeds 2,048 characters.

Request URI exceeds 2,048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

Error

GET/readyNo authentication

Collection readiness

Returns only minimal status. Requires the exact approved registry, current collector ownership/coverage, seeded current-generation books and applicable context coverage. Collection readiness can remain true while an idle source book is too old for research. Query strings are ignored. Detailed diagnostics require the private ingestion status route.

cURL (authorized SSM tunnel)Shell
curl --fail-with-body --silent --show-error \
  'http://127.0.0.1:8080/ready'

Parameters

No parameters.

Responses

200Approved collection coverage is ready.

Approved collection coverage is ready.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic readiness response
{
  "status": "ready"
}
Response schema

Ready

400Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unexpected_body
{
  "error": "unexpected_body"
}
invalid_query
{
  "error": "invalid_query"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

Error

405Only GET is implemented; HEAD and OPTIONS are not implemented.

Only GET is implemented; HEAD and OPTIONS are not implemented.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow

Allowed request method.

"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

Error

414Request URI exceeds 2,048 characters.

Request URI exceeds 2,048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

Error

503Collection coverage is unavailable, or a storage/service check failed.

Collection coverage is unavailable, or a storage/service check failed.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic unavailable coverage
{
  "status": "unavailable"
}
Sanitized service failure
{
  "error": "service_unavailable"
}
Response schema

NotReady | ServiceUnavailable

Markets

GET/v1/marketsBearer required

Approved market catalog

Returns only the compiled owner-approved manifest identities after validating the stored registry. Metadata refresh cannot add a listing or substitute an identity. HTTP 200 may contain stale:true for a retained catalog; it is not a fresh-price guarantee. No query parameters are accepted.

cURL (authorized SSM tunnel)Shell
curl --fail-with-body --silent --show-error --header "Authorization: Bearer $ALT_READ_TOKEN" \
  'http://127.0.0.1:8080/v1/markets'

Parameters

No parameters.

Responses

200Approved catalog and registry provenance.

Approved catalog and registry provenance.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic full approved catalog; prices and contexts unavailable
{
  "markets": [
    {
      "marketType": "spot",
      "coin": "@142",
      "dex": "",
      "assetId": 10142,
      "isActive": true,
      "metadata": {
        "kind": "spot",
        "displayName": "BTC",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "spot",
      "coin": "@151",
      "dex": "",
      "assetId": 10151,
      "isActive": true,
      "metadata": {
        "kind": "spot",
        "displayName": "ETH",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "spot",
      "coin": "@156",
      "dex": "",
      "assetId": 10156,
      "isActive": true,
      "metadata": {
        "kind": "spot",
        "displayName": "SOL",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "spot",
      "coin": "@107",
      "dex": "",
      "assetId": 10107,
      "isActive": true,
      "metadata": {
        "kind": "spot",
        "displayName": "HYPE",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "spot",
      "coin": "@272",
      "dex": "",
      "assetId": 10272,
      "isActive": true,
      "metadata": {
        "kind": "spot",
        "displayName": "ZEC",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "spot",
      "coin": "@188",
      "dex": "",
      "assetId": 10188,
      "isActive": true,
      "metadata": {
        "kind": "spot",
        "displayName": "PUMP",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "spot",
      "coin": "PURR/USDC",
      "dex": "",
      "assetId": 10000,
      "isActive": true,
      "metadata": {
        "kind": "spot",
        "displayName": "PURR",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "BTC",
      "dex": "",
      "assetId": 0,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "BTC",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "ETH",
      "dex": "",
      "assetId": 1,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "ETH",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "SOL",
      "dex": "",
      "assetId": 5,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "SOL",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "HYPE",
      "dex": "",
      "assetId": 159,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "HYPE",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "ZEC",
      "dex": "",
      "assetId": 214,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "ZEC",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "PUMP",
      "dex": "",
      "assetId": 200,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "PUMP",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "PURR",
      "dex": "",
      "assetId": 152,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "PURR",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:GOLD",
      "dex": "xyz",
      "assetId": 110003,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "GOLD",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:SILVER",
      "dex": "xyz",
      "assetId": 110026,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "SILVER",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:COPPER",
      "dex": "xyz",
      "assetId": 110030,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "COPPER",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:MU",
      "dex": "xyz",
      "assetId": 110015,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "MU",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:SKHY",
      "dex": "xyz",
      "assetId": 110099,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "SKHY",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:GOOGL",
      "dex": "xyz",
      "assetId": 110012,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "GOOGL",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:DRAM",
      "dex": "xyz",
      "assetId": 110065,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "DRAM",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:CL",
      "dex": "xyz",
      "assetId": 110029,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "WTI",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:SNDK",
      "dex": "xyz",
      "assetId": 110016,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "SNDK",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:AAPL",
      "dex": "xyz",
      "assetId": 110009,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "AAPL",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:MSFT",
      "dex": "xyz",
      "assetId": 110010,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "MSFT",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:SPCX",
      "dex": "xyz",
      "assetId": 110076,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "SPCX",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:TSLA",
      "dex": "xyz",
      "assetId": 110001,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "TSLA",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:AMZN",
      "dex": "xyz",
      "assetId": 110013,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "AMZN",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:AMD",
      "dex": "xyz",
      "assetId": 110014,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "AMD",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:INTC",
      "dex": "xyz",
      "assetId": 110005,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "INTC",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:META",
      "dex": "xyz",
      "assetId": 110008,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "META",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:COIN",
      "dex": "xyz",
      "assetId": 110007,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "COIN",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:HOOD",
      "dex": "xyz",
      "assetId": 110004,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "HOOD",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:ORCL",
      "dex": "xyz",
      "assetId": 110011,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "ORCL",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:SP500",
      "dex": "xyz",
      "assetId": 110052,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "SP500",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:MAGS",
      "dex": "xyz",
      "assetId": 110108,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "MAGS",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:SOXL",
      "dex": "xyz",
      "assetId": 110107,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "SOXL",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    },
    {
      "marketType": "perp",
      "coin": "xyz:EWY",
      "dex": "xyz",
      "assetId": 110047,
      "isActive": true,
      "metadata": {
        "kind": "perp",
        "displayName": "EWY",
        "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
      },
      "instrumentGeneration": 1,
      "context": null,
      "contextQuality": "invalid_or_unavailable",
      "contextObservedAt": 1800000000000,
      "discoveryState": "present"
    }
  ],
  "coverage": "approved_launch_universe",
  "generation": "1",
  "membershipGeneration": "synthetic-membership-1",
  "observedAt": 1800000000000,
  "stale": false,
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
}
Response schema

Catalog

400Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unexpected_body
{
  "error": "unexpected_body"
}
invalid_query
{
  "error": "invalid_query"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

Error

401Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unauthorized
{
  "error": "unauthorized"
}
Response schema

Error

405Only GET is implemented; HEAD and OPTIONS are not implemented.

Only GET is implemented; HEAD and OPTIONS are not implemented.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow

Allowed request method.

"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

Error

414Request URI exceeds 2,048 characters.

Request URI exceeds 2,048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

Error

503The exact approved registry is unavailable, or a storage/service operation failed.

The exact approved registry is unavailable, or a storage/service operation failed.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Missing or mismatched approved registry
{
  "error": "approved_registry_unavailable"
}
Sanitized service failure
{
  "error": "service_unavailable"
}
Response schema

RegistryUnavailable | ServiceUnavailable

GET/v1/markets/{coin}/bookBearer required

Latest observed L2 book

Returns the exact approved instrument’s current-generation snapshot. Registry and collector coverage must be current. Both exchange source time and ALT receipt time must pass freshness checks (default 15 seconds). Unknown source time, stale/inactive data or identity/generation mismatch returns 503. All query parameters are rejected. Retained data in a 503 response must not be used as fresh research evidence.

cURL (authorized SSM tunnel)Shell
curl --fail-with-body --silent --show-error --header "Authorization: Bearer $ALT_READ_TOKEN" \
  'http://127.0.0.1:8080/v1/markets/BTC/book'

Parameters

NameInTypeDescription
coinrequiredpathCoin

Exact approved venue coin, percent-encoded as one path segment. Examples: BTC perp → BTC; BTC spot → @142; PURR spot → PURR%2FUSDC; Alphabet perp → xyz%3AGOOGL. Display aliases do not substitute for venue identities.

Responses

200Fresh current-instrument book observation.

Fresh current-instrument book observation.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic book; not a live price
{
  "venue": "hyperliquid",
  "channel": "l2Book",
  "coin": "BTC",
  "dex": "",
  "exchangeTime": 1799999999900,
  "receivedAt": 1800000000000,
  "sourceTimeKnown": true,
  "ageMs": 100,
  "stale": false,
  "data": {
    "coin": "BTC",
    "time": 1799999999900,
    "levels": [
      [
        {
          "px": "100.000000000000000001",
          "sz": "0.012345678901234567",
          "n": 1
        }
      ],
      [
        {
          "px": "100.100000000000000001",
          "sz": "1",
          "n": 2
        }
      ]
    ],
    "isSnapshot": true
  }
}
Response schema

BookObservation

400Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unexpected_body
{
  "error": "unexpected_body"
}
invalid_query
{
  "error": "invalid_query"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

Error

401Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unauthorized
{
  "error": "unauthorized"
}
Response schema

Error

404Unknown route or instrument outside the approved manifest.

Unknown route or instrument outside the approved manifest.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
not_found
{
  "error": "not_found"
}
unknown_market
{
  "error": "unknown_market"
}
Response schema

Error

405Only GET is implemented; HEAD and OPTIONS are not implemented.

Only GET is implemented; HEAD and OPTIONS are not implemented.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow

Allowed request method.

"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

Error

414Request URI exceeds 2,048 characters.

Request URI exceeds 2,048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

Error

503No fresh usable observation, inactive market, unavailable approved registry, or sanitized service failure.

No fresh usable observation, inactive market, unavailable approved registry, or sanitized service failure.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic missing observation
{
  "coin": "BTC",
  "data": null,
  "stale": true,
  "error": "market_data_unavailable"
}
Synthetic retained stale book, not usable as fresh evidence
{
  "venue": "hyperliquid",
  "channel": "l2Book",
  "coin": "BTC",
  "dex": "",
  "exchangeTime": 1799999999900,
  "receivedAt": 1800000000000,
  "sourceTimeKnown": true,
  "ageMs": 30000,
  "stale": true,
  "data": {
    "coin": "BTC",
    "time": 1799999999900,
    "levels": [
      [
        {
          "px": "100.000000000000000001",
          "sz": "0.012345678901234567",
          "n": 1
        }
      ],
      [
        {
          "px": "100.100000000000000001",
          "sz": "1",
          "n": 2
        }
      ]
    ],
    "isSnapshot": true
  },
  "error": "market_data_unavailable"
}
Synthetic inactive approved instrument
{
  "coin": "BTC",
  "stale": true,
  "error": "market_inactive"
}
Missing or mismatched approved registry
{
  "error": "approved_registry_unavailable"
}
Sanitized service failure
{
  "error": "service_unavailable"
}
Response schema

UnavailableObservation | MissingObservation | InactiveMarket | RegistryUnavailable | ServiceUnavailable

GET/v1/markets/{coin}/contextBearer required

Latest observed spot or perp context

Returns the newest assetContext or historical activeAssetCtx observation for the current approved instrument. Default context freshness is 120 seconds. Current REST contexts have unknown exchange source time; receivedAt describes when ALT observed the response. Perp contexts include funding/openInterest; those fields are not applicable to spot. All query parameters are rejected. Missing, invalid, stale or mismatched contexts return503.

cURL (authorized SSM tunnel)Shell
curl --fail-with-body --silent --show-error --header "Authorization: Bearer $ALT_READ_TOKEN" \
  'http://127.0.0.1:8080/v1/markets/BTC/context'

Parameters

NameInTypeDescription
coinrequiredpathCoin

Exact approved venue coin, percent-encoded as one path segment. Examples: BTC perp → BTC; BTC spot → @142; PURR spot → PURR%2FUSDC; Alphabet perp → xyz%3AGOOGL. Display aliases do not substitute for venue identities.

Responses

200Usable current-instrument context observation.

Usable current-instrument context observation.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic perpetual context; not a live quote
{
  "venue": "hyperliquid",
  "channel": "assetContext",
  "coin": "BTC",
  "dex": "",
  "exchangeTime": null,
  "receivedAt": 1800000000000,
  "sourceTimeKnown": false,
  "ageMs": 100,
  "stale": false,
  "data": {
    "coin": "BTC",
    "ctx": {
      "funding": "0.00001",
      "openInterest": "123.45",
      "markPx": "100.1",
      "oraclePx": "100"
    },
    "source": "rest",
    "sourceTimeKnown": false,
    "kind": "perp"
  }
}
Synthetic spot context; funding/open interest not applicable
{
  "venue": "hyperliquid",
  "channel": "assetContext",
  "coin": "@142",
  "dex": "",
  "exchangeTime": null,
  "receivedAt": 1800000000000,
  "sourceTimeKnown": false,
  "ageMs": 100,
  "stale": false,
  "data": {
    "coin": "@142",
    "ctx": {
      "coin": "@142",
      "markPx": "100.1",
      "prevDayPx": "99",
      "dayNtlVlm": "100000"
    },
    "source": "rest",
    "sourceTimeKnown": false,
    "kind": "spot"
  }
}
Response schema

ContextObservation

400Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unexpected_body
{
  "error": "unexpected_body"
}
invalid_query
{
  "error": "invalid_query"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

Error

401Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unauthorized
{
  "error": "unauthorized"
}
Response schema

Error

404Unknown route or instrument outside the approved manifest.

Unknown route or instrument outside the approved manifest.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
not_found
{
  "error": "not_found"
}
unknown_market
{
  "error": "unknown_market"
}
Response schema

Error

405Only GET is implemented; HEAD and OPTIONS are not implemented.

Only GET is implemented; HEAD and OPTIONS are not implemented.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow

Allowed request method.

"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

Error

414Request URI exceeds 2,048 characters.

Request URI exceeds 2,048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

Error

503No fresh usable observation, inactive market, unavailable approved registry, or sanitized service failure.

No fresh usable observation, inactive market, unavailable approved registry, or sanitized service failure.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic missing observation
{
  "coin": "BTC",
  "data": null,
  "stale": true,
  "error": "market_data_unavailable"
}
Synthetic retained stale REST context; source time remains unknown
{
  "venue": "hyperliquid",
  "channel": "assetContext",
  "coin": "BTC",
  "dex": "",
  "exchangeTime": null,
  "receivedAt": 1800000000000,
  "sourceTimeKnown": false,
  "ageMs": 130000,
  "stale": true,
  "data": {
    "coin": "BTC",
    "ctx": {
      "funding": "0.00001",
      "openInterest": "123.45",
      "markPx": "100.1",
      "oraclePx": "100"
    },
    "source": "rest",
    "sourceTimeKnown": false,
    "kind": "perp"
  },
  "error": "market_data_unavailable"
}
Synthetic inactive approved instrument
{
  "coin": "BTC",
  "stale": true,
  "error": "market_inactive"
}
Missing or mismatched approved registry
{
  "error": "approved_registry_unavailable"
}
Sanitized service failure
{
  "error": "service_unavailable"
}
Response schema

UnavailableObservation | MissingObservation | InactiveMarket | RegistryUnavailable | ServiceUnavailable

GET/v1/markets/{coin}/tradesBearer required

Observed trade history

Returns current-instrument-generation trades retained in the hot journal, newest first. Coverage is observed_only and historyComplete is always false. Collection gaps are not repaired into a complete history by this endpoint. An empty list can be valid. HTTP 503 can retain observed trades with stale:true if collection coverage is not ready. Only one limit and one before parameter are accepted.

cURL (authorized SSM tunnel)Shell
curl --fail-with-body --silent --show-error --header "Authorization: Bearer $ALT_READ_TOKEN" \
  'http://127.0.0.1:8080/v1/markets/BTC/trades?limit=100&before=1800000000000'

Parameters

NameInTypeDescription
coinrequiredpathCoin

Exact approved venue coin, percent-encoded as one path segment. Examples: BTC perp → BTC; BTC spot → @142; PURR spot → PURR%2FUSDC; Alphabet perp → xyz%3AGOOGL. Display aliases do not substitute for venue identities.

limitoptionalqueryinteger

Single integer parameter. Maximum 500 observed trades; default 100. Zero, decimals, duplicate keys and unsupported keys return 400.

min: 1
max: 500
default: 100

beforeoptionalqueryEpochMillis

Single positive Unix epoch-millisecond boundary, exclusive: exchange_time < before. Results sort by exchange_time descending, then internal journal ID descending. This is not a row cursor: trades sharing the boundary timestamp can be omitted when paging. There is no next cursor or complete-history guarantee. Use values <=9007199254740991; currently a larger positive signed-int64 value passes the HTTP parser but fails store validation as 503 service_unavailable.

Responses

200Bounded observed trades while registry and collection coverage are ready.

Bounded observed trades while registry and collection coverage are ready.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic observed trade; not an order or execution receipt
{
  "coin": "BTC",
  "stale": false,
  "trades": [
    {
      "marketType": "perp",
      "venue": "hyperliquid",
      "channel": "trades",
      "coin": "BTC",
      "dex": "",
      "eventId": "BTC:g1:1800000000000:42",
      "exchangeTime": 1800000000000,
      "receivedAt": 1800000000010,
      "payload": {
        "coin": "BTC",
        "px": "100.000000000000000001",
        "sz": "0.012345678901234567",
        "side": "B",
        "time": 1800000000000,
        "tid": 42
      },
      "instrumentGeneration": 1,
      "assetId": 0,
      "registryGeneration": "1"
    }
  ],
  "coverage": "observed_only",
  "historyComplete": false,
  "beforeSemantics": "exclusive_exchange_time"
}
Synthetic valid empty trade list
{
  "coin": "BTC",
  "stale": false,
  "trades": [],
  "coverage": "observed_only",
  "historyComplete": false,
  "beforeSemantics": "exclusive_exchange_time"
}
Response schema

Trades

400Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unexpected_body
{
  "error": "unexpected_body"
}
invalid_query
{
  "error": "invalid_query"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

Error

401Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unauthorized
{
  "error": "unauthorized"
}
Response schema

Error

404Unknown route or instrument outside the approved manifest.

Unknown route or instrument outside the approved manifest.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
not_found
{
  "error": "not_found"
}
unknown_market
{
  "error": "unknown_market"
}
Response schema

Error

405Only GET is implemented; HEAD and OPTIONS are not implemented.

Only GET is implemented; HEAD and OPTIONS are not implemented.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow

Allowed request method.

"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

Error

414Request URI exceeds 2,048 characters.

Request URI exceeds 2,048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

Error

503Collection coverage is not ready, the instrument is inactive, the approved registry is unavailable, or a storage/service operation failed.

Collection coverage is not ready, the instrument is inactive, the approved registry is unavailable, or a storage/service operation failed.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic retained observations during unavailable coverage
{
  "coin": "BTC",
  "stale": true,
  "trades": [
    {
      "marketType": "perp",
      "venue": "hyperliquid",
      "channel": "trades",
      "coin": "BTC",
      "dex": "",
      "eventId": "BTC:g1:1800000000000:42",
      "exchangeTime": 1800000000000,
      "receivedAt": 1800000000010,
      "payload": {
        "coin": "BTC",
        "px": "100.000000000000000001",
        "sz": "0.012345678901234567",
        "side": "B",
        "time": 1800000000000,
        "tid": 42
      },
      "instrumentGeneration": 1,
      "assetId": 0,
      "registryGeneration": "1"
    }
  ],
  "coverage": "observed_only",
  "historyComplete": false,
  "beforeSemantics": "exclusive_exchange_time"
}
Synthetic inactive approved instrument
{
  "coin": "BTC",
  "stale": true,
  "error": "market_inactive"
}
Missing or mismatched approved registry
{
  "error": "approved_registry_unavailable"
}
Sanitized service failure
{
  "error": "service_unavailable"
}
Response schema

Trades | InactiveMarket | RegistryUnavailable | ServiceUnavailable

GET/v1/markets/{coin}/featuresBearer required

Current-book spread and top-five depth features

Calculates l2-top5-v1 from one identity-checked current approved L2 snapshot. Exact rational arithmetic preserves best quotes, midpoint, absolute spread and base-depth sums; spread basis points and depth imbalance use 18 fractional places rounded to nearest with halves away from zero. Both original sides require strictly ordered distinct positive prices and nonnegative sizes, at most 1000 levels per side; zero-size rows are excluded and counted. Full depth requires five positive-size levels on each side. A shorter valid two-sided book returns HTTP 200 quality=partial with quote/spread values and null depth values. Empty/one-sided, crossed/locked, malformed, stale, inactive, disconnected or mismatched inputs return HTTP 503 with all measurements null. Freshness validates source and receipt clocks separately using the configured book threshold (default 15000 ms) and five-second future-clock tolerance. Applicable funding/context availability does not block an independently fresh L2 measurement. All query parameters are rejected; this endpoint does not read trades, execute orders or claim historical completeness.

cURL (authorized local API tunnel)Shell
curl --fail-with-body --silent --show-error --header "Authorization: Bearer $ALT_READ_TOKEN" \
  'http://127.0.0.1:8080/v1/markets/BTC/features'

Parameters

NameInTypeDescription
coinrequiredpathCoin

Exact approved venue coin, percent-encoded as one path segment. Examples: BTC perp → BTC; BTC spot → @142; PURR spot → PURR%2FUSDC; Alphabet perp → xyz%3AGOOGL. Display aliases do not substitute for venue identities.

Responses

200Fresh valid input: full measurements or partial quote-only measurements. Inspect quality and explicit nulls, not HTTP status alone.

Fresh valid input: full measurements or partial quote-only measurements. Inspect quality and explicit nulls, not HTTP status alone.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic full top-five measurement

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "available",
  "stale": false,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 5,
    "askAvailableLevels": 5,
    "bidLevelsUsed": 5,
    "askLevelsUsed": 5,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": true
  },
  "values": {
    "bestBid": "100",
    "bestAsk": "100.1",
    "mid": "100.05",
    "spread": "0.1",
    "spreadBps": "9.995002498750624688",
    "bidBaseDepth": "15",
    "askBaseDepth": "10",
    "depthImbalance": "0.200000000000000000"
  }
}
Synthetic short book: quotes available, depth explicitly null

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "partial",
  "stale": false,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 5,
    "askAvailableLevels": 2,
    "bidLevelsUsed": 5,
    "askLevelsUsed": 2,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": "100",
    "bestAsk": "100.1",
    "mid": "100.05",
    "spread": "0.1",
    "spreadBps": "9.995002498750624688",
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "insufficient_depth"
}
Synthetic zero-size row excluded; only five positive levels used

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "available",
  "stale": false,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 5,
    "askAvailableLevels": 6,
    "bidLevelsUsed": 5,
    "askLevelsUsed": 5,
    "bidZeroSizeExcluded": 1,
    "askZeroSizeExcluded": 0,
    "complete": true
  },
  "values": {
    "bestBid": "100",
    "bestAsk": "100.1",
    "mid": "100.05",
    "spread": "0.1",
    "spreadBps": "9.995002498750624688",
    "bidBaseDepth": "15",
    "askBaseDepth": "10",
    "depthImbalance": "0.200000000000000000"
  }
}
Exact sub-18-place spread; declared ratio rounding can produce zero

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "partial",
  "stale": false,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 1,
    "askAvailableLevels": 1,
    "bidLevelsUsed": 1,
    "askLevelsUsed": 1,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": "9007199254740993.000000000000000001",
    "bestAsk": "9007199254740993.000000000000000003",
    "mid": "9007199254740993.000000000000000002",
    "spread": "0.000000000000000002",
    "spreadBps": "0.000000000000000000",
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "insufficient_depth"
}
Synthetic signed repeating imbalance rounded to 18 places

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "available",
  "stale": false,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 5,
    "askAvailableLevels": 5,
    "bidLevelsUsed": 5,
    "askLevelsUsed": 5,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": true
  },
  "values": {
    "bestBid": "100",
    "bestAsk": "100.1",
    "mid": "100.05",
    "spread": "0.1",
    "spreadBps": "9.995002498750624688",
    "bidBaseDepth": "1",
    "askBaseDepth": "2",
    "depthImbalance": "-0.333333333333333333"
  }
}
Valid timestamps within the five-second future-clock tolerance have age zero

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "available",
  "stale": false,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1800000001000,
    "receivedAt": 1800000000500
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 0,
    "receiptAgeMs": 0,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 5,
    "askAvailableLevels": 5,
    "bidLevelsUsed": 5,
    "askLevelsUsed": 5,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": true
  },
  "values": {
    "bestBid": "100",
    "bestAsk": "100.1",
    "mid": "100.05",
    "spread": "0.1",
    "spreadBps": "9.995002498750624688",
    "bidBaseDepth": "15",
    "askBaseDepth": "10",
    "depthImbalance": "0.200000000000000000"
  }
}
Response schema

AvailableBookFeatures | PartialBookFeatures

400Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unexpected_body
{
  "error": "unexpected_body"
}
invalid_query
{
  "error": "invalid_query"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

Error

401Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unauthorized
{
  "error": "unauthorized"
}
Response schema

Error

404Unknown route or instrument outside the approved manifest.

Unknown route or instrument outside the approved manifest.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
not_found
{
  "error": "not_found"
}
unknown_market
{
  "error": "unknown_market"
}
Response schema

Error

405Only GET is implemented; HEAD and OPTIONS are not implemented.

Only GET is implemented; HEAD and OPTIONS are not implemented.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow

Allowed request method.

"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

Error

414Request URI exceeds 2,048 characters.

Request URI exceeds 2,048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

Error

503Unavailable input/coverage with a typed all-null feature envelope, or a sanitized registry/service error before calculation. This response cannot be used as fresh research evidence.

Unavailable input/coverage with a typed all-null feature envelope, or a sanitized registry/service error before calculation. This response cannot be used as fresh research evidence.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic inactive approved market

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": null,
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": false,
    "sourceAgeMs": null,
    "receiptAgeMs": null,
    "sourceStale": true,
    "receiptStale": true
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "market_inactive",
  "error": "market_data_unavailable"
}
Synthetic missing input book

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": null,
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": false,
    "sourceAgeMs": null,
    "receiptAgeMs": null,
    "sourceStale": true,
    "receiptStale": true
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "book_unavailable",
  "error": "market_data_unavailable"
}
Synthetic input identity or evidence id cannot be trusted

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": null,
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": false,
    "sourceAgeMs": null,
    "receiptAgeMs": null,
    "sourceStale": true,
    "receiptStale": true
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "input_identity_unavailable",
  "error": "market_data_unavailable"
}
Synthetic registry stale while both input clocks are fresh

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "registry_stale",
  "error": "market_data_unavailable"
}
Synthetic disconnected or unavailable collection with fresh input clocks

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "collection_unavailable",
  "error": "market_data_unavailable"
}
Synthetic input payload coin/time mismatches its envelope

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "input_payload_mismatch",
  "error": "market_data_unavailable"
}
Synthetic malformed, unsorted, duplicate-price or invalid-decimal book

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "invalid_book",
  "error": "market_data_unavailable"
}
Synthetic stale source with a fresh receipt

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999970000,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 30000,
    "receiptAgeMs": 100,
    "sourceStale": true,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "book_stale",
  "error": "market_data_unavailable"
}
Synthetic fresh source with a stale receipt; flags stay independent

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999993000,
    "receivedAt": 1799999984000
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 7000,
    "receiptAgeMs": 16000,
    "sourceStale": false,
    "receiptStale": true
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "book_stale",
  "error": "market_data_unavailable"
}
Unknown source time never borrows the receipt age

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": null,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": false,
    "sourceAgeMs": null,
    "receiptAgeMs": 100,
    "sourceStale": true,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "book_stale",
  "error": "market_data_unavailable"
}
Present source timestamp beyond future tolerance is known but invalid

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1800000005001,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": null,
    "receiptAgeMs": 100,
    "sourceStale": true,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "book_stale",
  "error": "market_data_unavailable"
}
Invalid receipt clock does not mark a fresh source as stale

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1800000005001
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": null,
    "sourceStale": false,
    "receiptStale": true
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 0,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "book_stale",
  "error": "market_data_unavailable"
}
Synthetic zero-size-only bid side makes all values unavailable

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 0,
    "askAvailableLevels": 5,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 5,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "one_sided_or_empty_book",
  "error": "market_data_unavailable"
}
Synthetic crossed or locked best quote makes all values unavailable

Frozen synthetic example, not live market data or execution authority.

{
  "schemaVersion": "alt.market_features.v1",
  "coin": "BTC",
  "dex": "",
  "marketType": "perp",
  "assetId": 0,
  "instrumentGeneration": "1",
  "registryGeneration": "2",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "calculatedAt": 1800000000000,
  "coverage": "observed_snapshot",
  "quality": "unavailable",
  "stale": true,
  "definition": {
    "id": "l2-top5-v1",
    "depthLevels": 5,
    "ratioDecimalPlaces": 18,
    "ratioRounding": "nearest_half_away_from_zero"
  },
  "source": {
    "eventId": "BTC:g1:synthetic-feature-input",
    "registryGeneration": "1",
    "exchangeTime": 1799999999900,
    "receivedAt": 1799999999900
  },
  "freshness": {
    "maxAgeMs": 15000,
    "sourceTimeKnown": true,
    "sourceAgeMs": 100,
    "receiptAgeMs": 100,
    "sourceStale": false,
    "receiptStale": false
  },
  "units": {
    "price": "quote_asset_per_base_asset",
    "baseDepth": "base_asset",
    "spreadBps": "basis_points",
    "depthImbalance": "ratio"
  },
  "depth": {
    "requiredLevels": 5,
    "bidAvailableLevels": 5,
    "askAvailableLevels": 5,
    "bidLevelsUsed": 0,
    "askLevelsUsed": 0,
    "bidZeroSizeExcluded": 0,
    "askZeroSizeExcluded": 0,
    "complete": false
  },
  "values": {
    "bestBid": null,
    "bestAsk": null,
    "mid": null,
    "spread": null,
    "spreadBps": null,
    "bidBaseDepth": null,
    "askBaseDepth": null,
    "depthImbalance": null
  },
  "reason": "crossed_or_locked_book",
  "error": "market_data_unavailable"
}
Approved registry missing or mismatched

Frozen synthetic example, not live market data or execution authority.

{
  "error": "approved_registry_unavailable"
}
Sanitized service/storage failure

Frozen synthetic example, not live market data or execution authority.

{
  "error": "service_unavailable"
}
Response schema

UnavailableBookFeatures | RegistryUnavailable | ServiceUnavailable

Ingestion

GET/v1/ingestion/statusBearer required

Approved coverage and freshness

Provides private collection readiness, separate research readiness, per-approved-market freshness and bounded collector summaries. Missing/mismatched collector observations do not claim valid current approval. Well-formed query parameters are currently ignored; malformed query encoding returns 400.

cURL (authorized SSM tunnel)Shell
curl --fail-with-body --silent --show-error --header "Authorization: Bearer $ALT_READ_TOKEN" \
  'http://127.0.0.1:8080/v1/ingestion/status'

Parameters

No parameters.

Responses

200Collection coverage is ready; inspect researchReady separately.

Collection coverage is ready; inspect researchReady separately.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic full coverage and fresh research evidence
{
  "ready": true,
  "reason": "ready",
  "scope": "approved",
  "registryGeneration": "1",
  "membershipGeneration": "synthetic-membership-1",
  "registryObservedAt": 1800000000000,
  "researchReady": true,
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "coverage": {
    "approved": 38,
    "catalog": 38,
    "active": 38,
    "covered": 38,
    "expectedGroups": 1,
    "reportingGroups": 1
  },
  "markets": [
    {
      "coin": "@142",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "@151",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "@156",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "@107",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "@272",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "@188",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "PURR/USDC",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "BTC",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "ETH",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "SOL",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "HYPE",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "ZEC",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "PUMP",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "PURR",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:GOLD",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:SILVER",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:COPPER",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:MU",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:SKHY",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:GOOGL",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:DRAM",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:CL",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:SNDK",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:AAPL",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:MSFT",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:SPCX",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:TSLA",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:AMZN",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:AMD",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:INTC",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:META",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:COIN",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:HOOD",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:ORCL",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:SP500",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:MAGS",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:SOXL",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    },
    {
      "coin": "xyz:EWY",
      "ready": true,
      "researchReady": true,
      "bookStale": false,
      "contextReady": true,
      "contextQuality": "observed"
    }
  ],
  "observations": [
    {
      "updatedAt": 1800000000000,
      "status": {
        "groupIndex": 0,
        "groupCount": 1,
        "connected": true,
        "ingestionReady": true,
        "researchReady": true,
        "coverage": {
          "universeActive": 38,
          "assigned": 38,
          "covered": 38,
          "capacityExceeded": false,
          "requiredConnections": 1,
          "requiredSubscriptions": 76
        },
        "shardCount": 1,
        "queueDepth": 0,
        "queueBytes": 0,
        "reconnects": 0
      }
    }
  ]
}
Response schema

IngestionStatus

400Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Unexpected request body, malformed query, invalid market encoding or unsupported query parameters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unexpected_body
{
  "error": "unexpected_body"
}
invalid_query
{
  "error": "invalid_query"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

Error

401Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Missing or invalid internal bearer credential. Authentication is checked before private storage reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
unauthorized
{
  "error": "unauthorized"
}
Response schema

Error

405Only GET is implemented; HEAD and OPTIONS are not implemented.

Only GET is implemented; HEAD and OPTIONS are not implemented.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow

Allowed request method.

"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

Error

414Request URI exceeds 2,048 characters.

Request URI exceeds 2,048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

Error

503Collection coverage is not ready. The response retains bounded diagnostics; a service/storage failure instead returns a sanitized error.

Collection coverage is not ready. The response retains bounded diagnostics; a service/storage failure instead returns a sanitized error.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic missing approved registry
{
  "ready": false,
  "reason": "approved_registry_unavailable",
  "scope": "approved",
  "researchReady": false,
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "coverage": {
    "approved": 38,
    "catalog": 0,
    "active": 0,
    "covered": 0,
    "expectedGroups": 1,
    "reportingGroups": 0
  },
  "markets": [],
  "observations": []
}
Sanitized service failure
{
  "error": "service_unavailable"
}
Response schema

IngestionStatus | ServiceUnavailable

Public market data

GET/v1/market-data/summariesNo authentication

Approved market quotes and statistics

Returns exactly 38 owner-approved identities in manifest order. Values derive from current-generation ingested contexts; fresh receipts do not create exchange timestamps. Price/24hchange/quotevolume/funding/baseOI/mark-valuedOI are nullable by availability and applicability. Component unavailability is HTTP200 with quality=unavailable and null values. No account, health diagnostics or raw metadata is exposed. Internal cache 1 second; max 600 public requests/minute and 8 active distinct data reads.

Public read; no tokenShell
curl --fail-with-body 'https://docs.altliquid.xyz/v1/market-data/summaries'

Parameters

No parameters.

Responses

200Public venue observation; per-component quality and source clocks must be checked.

Public venue observation; per-component quality and source clocks must be checked.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic contract example; no live price
{
  "schemaVersion": "alt.public_market_data.v1",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "observedAt": 1800000000000,
  "markets": [
    {
      "identity": {
        "coin": "@142",
        "dex": "",
        "marketType": "spot",
        "assetId": 10142,
        "instrumentGeneration": "1"
      },
      "displayName": "BTC",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": null,
      "openInterestQuote": null,
      "hourlyFundingRate": null,
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "@151",
        "dex": "",
        "marketType": "spot",
        "assetId": 10151,
        "instrumentGeneration": "1"
      },
      "displayName": "ETH",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": null,
      "openInterestQuote": null,
      "hourlyFundingRate": null,
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "@156",
        "dex": "",
        "marketType": "spot",
        "assetId": 10156,
        "instrumentGeneration": "1"
      },
      "displayName": "SOL",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": null,
      "openInterestQuote": null,
      "hourlyFundingRate": null,
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "@107",
        "dex": "",
        "marketType": "spot",
        "assetId": 10107,
        "instrumentGeneration": "1"
      },
      "displayName": "HYPE",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": null,
      "openInterestQuote": null,
      "hourlyFundingRate": null,
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "@272",
        "dex": "",
        "marketType": "spot",
        "assetId": 10272,
        "instrumentGeneration": "1"
      },
      "displayName": "ZEC",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": null,
      "openInterestQuote": null,
      "hourlyFundingRate": null,
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "@188",
        "dex": "",
        "marketType": "spot",
        "assetId": 10188,
        "instrumentGeneration": "1"
      },
      "displayName": "PUMP",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": null,
      "openInterestQuote": null,
      "hourlyFundingRate": null,
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "PURR/USDC",
        "dex": "",
        "marketType": "spot",
        "assetId": 10000,
        "instrumentGeneration": "1"
      },
      "displayName": "PURR",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": null,
      "openInterestQuote": null,
      "hourlyFundingRate": null,
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "BTC",
        "dex": "",
        "marketType": "perp",
        "assetId": 0,
        "instrumentGeneration": "1"
      },
      "displayName": "BTC",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "ETH",
        "dex": "",
        "marketType": "perp",
        "assetId": 1,
        "instrumentGeneration": "1"
      },
      "displayName": "ETH",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "SOL",
        "dex": "",
        "marketType": "perp",
        "assetId": 5,
        "instrumentGeneration": "1"
      },
      "displayName": "SOL",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "HYPE",
        "dex": "",
        "marketType": "perp",
        "assetId": 159,
        "instrumentGeneration": "1"
      },
      "displayName": "HYPE",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "ZEC",
        "dex": "",
        "marketType": "perp",
        "assetId": 214,
        "instrumentGeneration": "1"
      },
      "displayName": "ZEC",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "PUMP",
        "dex": "",
        "marketType": "perp",
        "assetId": 200,
        "instrumentGeneration": "1"
      },
      "displayName": "PUMP",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "PURR",
        "dex": "",
        "marketType": "perp",
        "assetId": 152,
        "instrumentGeneration": "1"
      },
      "displayName": "PURR",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:GOLD",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110003,
        "instrumentGeneration": "1"
      },
      "displayName": "GOLD",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:SILVER",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110026,
        "instrumentGeneration": "1"
      },
      "displayName": "SILVER",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:COPPER",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110030,
        "instrumentGeneration": "1"
      },
      "displayName": "COPPER",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:MU",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110015,
        "instrumentGeneration": "1"
      },
      "displayName": "MU",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:SKHY",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110099,
        "instrumentGeneration": "1"
      },
      "displayName": "SKHY",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:GOOGL",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110012,
        "instrumentGeneration": "1"
      },
      "displayName": "GOOGL",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:DRAM",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110065,
        "instrumentGeneration": "1"
      },
      "displayName": "DRAM",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:CL",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110029,
        "instrumentGeneration": "1"
      },
      "displayName": "WTI",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:SNDK",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110016,
        "instrumentGeneration": "1"
      },
      "displayName": "SNDK",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:AAPL",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110009,
        "instrumentGeneration": "1"
      },
      "displayName": "AAPL",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:MSFT",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110010,
        "instrumentGeneration": "1"
      },
      "displayName": "MSFT",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:SPCX",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110076,
        "instrumentGeneration": "1"
      },
      "displayName": "SPCX",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:TSLA",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110001,
        "instrumentGeneration": "1"
      },
      "displayName": "TSLA",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:AMZN",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110013,
        "instrumentGeneration": "1"
      },
      "displayName": "AMZN",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:AMD",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110014,
        "instrumentGeneration": "1"
      },
      "displayName": "AMD",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:INTC",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110005,
        "instrumentGeneration": "1"
      },
      "displayName": "INTC",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:META",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110008,
        "instrumentGeneration": "1"
      },
      "displayName": "META",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:COIN",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110007,
        "instrumentGeneration": "1"
      },
      "displayName": "COIN",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:HOOD",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110004,
        "instrumentGeneration": "1"
      },
      "displayName": "HOOD",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:ORCL",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110011,
        "instrumentGeneration": "1"
      },
      "displayName": "ORCL",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:SP500",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110052,
        "instrumentGeneration": "1"
      },
      "displayName": "SP500",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:MAGS",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110108,
        "instrumentGeneration": "1"
      },
      "displayName": "MAGS",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:SOXL",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110107,
        "instrumentGeneration": "1"
      },
      "displayName": "SOXL",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    },
    {
      "identity": {
        "coin": "xyz:EWY",
        "dex": "xyz",
        "marketType": "perp",
        "assetId": 110047,
        "instrumentGeneration": "1"
      },
      "displayName": "EWY",
      "isActive": true,
      "quality": "available",
      "price": "110.123456789012345678",
      "priceKind": "mark",
      "previousDayPrice": "100",
      "change24hPercent": "10.123456789012345678",
      "volume24hQuote": "123456789.123456789012345678",
      "openInterestBase": "12.000000000000000001",
      "openInterestQuote": "1321.481481468148148246123456789012345678",
      "hourlyFundingRate": "-0.000012345678901234",
      "source": {
        "channel": "assetContext",
        "eventId": "synthetic-public-context",
        "exchangeTime": null,
        "receivedAt": 1799999999900,
        "sourceTimeKnown": false,
        "maxAgeMs": 120000,
        "stale": false
      }
    }
  ]
}
Response schema

PublicMarketSummaries

400Invalid/duplicate/unsupported query parameters or a request body.

Invalid/duplicate/unsupported query parameters or a request body.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
invalid_query
{
  "error": "invalid_query"
}
unexpected_body
{
  "error": "unexpected_body"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

PublicMarketError

404Unknown route or unapproved coin.

Unknown route or unapproved coin.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
not_found
{
  "error": "not_found"
}
unknown_market
{
  "error": "unknown_market"
}
Response schema

PublicMarketError

405GET only; Allow: GET.

GET only; Allow: GET.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow
"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

PublicMarketError

414URI exceeds 2048 characters.

URI exceeds 2048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

PublicMarketError

429Global public read limit: 600 requests perUTCminute. Retry-After: 60.

Global public read limit: 600 requests perUTCminute. Retry-After: 60.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Retry-After
"60"
application/json
public_read_rate_limited
{
  "error": "public_read_rate_limited"
}
Response schema

PublicMarketError

503Sanitized unavailable data/store/owner/provider/budget or max 8 distinct active reads.

Sanitized unavailable data/store/owner/provider/budget or max 8 distinct active reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
public_reads_busy
{
  "error": "public_reads_busy"
}
market_data_unavailable
{
  "error": "market_data_unavailable"
}
candle_data_unavailable
{
  "error": "candle_data_unavailable"
}
Response schema

PublicMarketError

GET/v1/market-data/{coin}/snapshotNo authentication

Market book, statistics and observed trades

Exact-identity current summary plus top 20 positive-size book levels per side and at most 50 recent observed trades. Source/receipt clocks and context/book freshness stay independent (120 seconds/15 seconds defaults). Invalid/stale books emit no levels. Trade history is observed-only, never a user position or fill ledger. No query parameters.

Public read; no tokenShell
curl --fail-with-body 'https://docs.altliquid.xyz/v1/market-data/BTC/snapshot'

Parameters

NameInTypeDescription
coinrequiredpathCoin

Exact owner-approved coin; URL-encode once (PURR%2FUSDC,xyz%3AGOOGL,@188). Display symbols never substitute identities.

Responses

200Public venue observation; per-component quality and source clocks must be checked.

Public venue observation; per-component quality and source clocks must be checked.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic contract example; no live price
{
  "schemaVersion": "alt.public_market_data.v1",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "observedAt": 1800000000000,
  "market": {
    "identity": {
      "coin": "BTC",
      "dex": "",
      "marketType": "perp",
      "assetId": 0,
      "instrumentGeneration": "1"
    },
    "displayName": "BTC",
    "isActive": true,
    "quality": "available",
    "price": "110.123456789012345678",
    "priceKind": "mark",
    "previousDayPrice": "100",
    "change24hPercent": "10.123456789012345678",
    "volume24hQuote": "123456789.123456789012345678",
    "openInterestBase": "12.000000000000000001",
    "openInterestQuote": "1321.481481468148148246123456789012345678",
    "hourlyFundingRate": "-0.000012345678901234",
    "source": {
      "channel": "assetContext",
      "eventId": "synthetic-public-context",
      "exchangeTime": null,
      "receivedAt": 1799999999900,
      "sourceTimeKnown": false,
      "maxAgeMs": 120000,
      "stale": false
    }
  },
  "book": {
    "quality": "available",
    "bids": [
      {
        "price": "110",
        "size": "1",
        "orderCount": 1
      }
    ],
    "asks": [
      {
        "price": "110.2",
        "size": "2",
        "orderCount": 1
      }
    ],
    "source": {
      "channel": "l2Book",
      "eventId": "synthetic-public-book",
      "exchangeTime": 1799999999900,
      "receivedAt": 1799999999900,
      "sourceTimeKnown": true,
      "maxAgeMs": 15000,
      "stale": false
    },
    "spread": "0.2",
    "midpoint": "110.1"
  },
  "trades": [
    {
      "price": "110.1",
      "size": "0.001",
      "side": "buy",
      "exchangeTime": 1799999999000,
      "receivedAt": 1799999999010
    }
  ],
  "tradesCoverage": "observed_only"
}
Response schema

PublicMarketSnapshot

400Invalid/duplicate/unsupported query parameters or a request body.

Invalid/duplicate/unsupported query parameters or a request body.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
invalid_query
{
  "error": "invalid_query"
}
unexpected_body
{
  "error": "unexpected_body"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

PublicMarketError

404Unknown route or unapproved coin.

Unknown route or unapproved coin.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
not_found
{
  "error": "not_found"
}
unknown_market
{
  "error": "unknown_market"
}
Response schema

PublicMarketError

405GET only; Allow: GET.

GET only; Allow: GET.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow
"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

PublicMarketError

414URI exceeds 2048 characters.

URI exceeds 2048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

PublicMarketError

429Global public read limit: 600 requests perUTCminute. Retry-After: 60.

Global public read limit: 600 requests perUTCminute. Retry-After: 60.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Retry-After
"60"
application/json
public_read_rate_limited
{
  "error": "public_read_rate_limited"
}
Response schema

PublicMarketError

503Sanitized unavailable data/store/owner/provider/budget or max 8 distinct active reads.

Sanitized unavailable data/store/owner/provider/budget or max 8 distinct active reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
public_reads_busy
{
  "error": "public_reads_busy"
}
market_data_unavailable
{
  "error": "market_data_unavailable"
}
candle_data_unavailable
{
  "error": "candle_data_unavailable"
}
Response schema

PublicMarketError

GET/v1/market-data/{coin}/candlesNo authentication

Real venue candlesticks and missing ranges

Fetches bounded actual Hyperliquid candleSnapshot history for the exact approved coin. Only the venue most recent 5000 candles are available; ALT exposes at most 500 per request and always historyComplete=false. Missing buckets remain explicit half-open gaps. Provider empty success is quality=empty; timeout/throttle/owner/budget failures return 503, never an invented empty chart. Coalesced cache 20 seconds retains actual receivedAt. Global public candle reserve 180 weight per 61 seconds; eachmiss reserves 30 weight including failures, alongside a qualified collector cap of 1000 out of 1200. A unique PostgreSQL session lock and 61-second startup quiet period protect replacement-process admission; no replica may bypass that contract. Read-only data access does not authorize orders. Retry-After cooldowns persist in a dedicated private state file. An admitted read writes a one-hour pending marker before provider I/O; an uncertain interrupted provider read conservatively blocks later candle misses for that hour. Normal client navigation does not abort this bounded shared provider read. Known responses clear pending state after the actual durable cooldown is recorded. Reservations remain charged for 61 seconds after the bounded provider request completes, including persistence, ownership, network delays and failures; admission time cannot expire before the actual send window. Known Retry-After integer seconds and HTTP-date deadlines are both persisted without a one-hour cap. The one-hour fence only covers an unknown interrupted response and cannot establish the deadline of an unseen longer restriction; investigate before overriding it. Current approved registry and qualified current-generation collector membership/subscriptions are required; a retained registry after metadata/identity validation failure cannot authorize a candle request. A book need not have a new price tick merely to view historical candles.

Public read; no tokenShell
curl --fail-with-body 'https://docs.altliquid.xyz/v1/market-data/BTC/candles?interval=1m&startTime=1799999880000&endTime=1800000000000'

Parameters

NameInTypeDescription
coinrequiredpathCoin

Exact owner-approved coin; URL-encode once (PURR%2FUSDC,xyz%3AGOOGL,@188). Display symbols never substitute identities.

intervalrequiredquery"1m" · "3m" · "5m" · "15m" · "30m" · "1h" · "2h" · "4h" · "8h" · "12h" · "1d"

Fixed venue candle interval; calendar1M and multi-day/week intervals are not exposed.

startTimerequiredqueryEpochMillis

Positive epoch milliseconds; bucket floor is used for the provider request. At most500 inclusive buckets.

endTimerequiredqueryEpochMillis

Positive epoch milliseconds >= startTime and <=server now + 5000 ms. Max 500 inclusive buckets; an unfinished current bucket may be returned.

Responses

200Public venue observation; per-component quality and source clocks must be checked.

Public venue observation; per-component quality and source clocks must be checked.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic contract example; no live price
{
  "schemaVersion": "alt.public_market_data.v1",
  "approvalManifestHash": "04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6",
  "observedAt": 1800000000000,
  "identity": {
    "coin": "BTC",
    "dex": "",
    "marketType": "perp",
    "assetId": 0,
    "instrumentGeneration": "1"
  },
  "interval": "1m",
  "startTime": 1799999880000,
  "endTime": 1800000000000,
  "receivedAt": 1800000000000,
  "quality": "available",
  "historyComplete": false,
  "coverage": "provider_recent_5000",
  "candles": [
    {
      "openTime": 1799999880000,
      "closeTime": 1799999939999,
      "open": "100",
      "high": "110",
      "low": "99",
      "close": "105",
      "volumeBase": "0.001",
      "tradeCount": 3,
      "isClosed": true
    },
    {
      "openTime": 1800000000000,
      "closeTime": 1800000059999,
      "open": "105",
      "high": "110",
      "low": "100",
      "close": "107",
      "volumeBase": "0.0001",
      "tradeCount": 1,
      "isClosed": false
    }
  ],
  "gaps": [
    {
      "startTime": 1799999940000,
      "endTime": 1800000000000
    }
  ]
}
Response schema

PublicCandles

400Invalid/duplicate/unsupported query parameters or a request body.

Invalid/duplicate/unsupported query parameters or a request body.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
invalid_query
{
  "error": "invalid_query"
}
unexpected_body
{
  "error": "unexpected_body"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

PublicMarketError

404Unknown route or unapproved coin.

Unknown route or unapproved coin.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
not_found
{
  "error": "not_found"
}
unknown_market
{
  "error": "unknown_market"
}
Response schema

PublicMarketError

405GET only; Allow: GET.

GET only; Allow: GET.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow
"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

PublicMarketError

414URI exceeds 2048 characters.

URI exceeds 2048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

PublicMarketError

429Global public read limit: 600 requests perUTCminute. Retry-After: 60.

Global public read limit: 600 requests perUTCminute. Retry-After: 60.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Retry-After
"60"
application/json
public_read_rate_limited
{
  "error": "public_read_rate_limited"
}
Response schema

PublicMarketError

503Sanitized unavailable data/store/owner/provider/budget or max 8 distinct active reads.

Sanitized unavailable data/store/owner/provider/budget or max 8 distinct active reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
public_reads_busy
{
  "error": "public_reads_busy"
}
market_data_unavailable
{
  "error": "market_data_unavailable"
}
candle_data_unavailable
{
  "error": "candle_data_unavailable"
}
Response schema

PublicMarketError

GET/healthzNo authentication

Public data process liveness

Operator-only liveness for the separate market-api process. Does not read storage or prove market/provider/readiness. The ALB routes only /v1/market-data/* publicly, so this local probe is not a public Internet API. Querystrings are ignored.

Local process probeShell
curl --fail 'http://127.0.0.1:8081/healthz'

Parameters

No parameters.

Responses

200Public venue observation; per-component quality and source clocks must be checked.

Public venue observation; per-component quality and source clocks must be checked.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
Synthetic contract example; no live price
{
  "status": "alive"
}
Response schema

PublicMarketHealth

400Invalid/duplicate/unsupported query parameters or a request body.

Invalid/duplicate/unsupported query parameters or a request body.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
invalid_query
{
  "error": "invalid_query"
}
unexpected_body
{
  "error": "unexpected_body"
}
invalid_market
{
  "error": "invalid_market"
}
Response schema

PublicMarketError

404Unknown route or unapproved coin.

Unknown route or unapproved coin.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
not_found
{
  "error": "not_found"
}
unknown_market
{
  "error": "unknown_market"
}
Response schema

PublicMarketError

405GET only; Allow: GET.

GET only; Allow: GET.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
Allow
"GET"
application/json
method_not_allowed
{
  "error": "method_not_allowed"
}
Response schema

PublicMarketError

414URI exceeds 2048 characters.

URI exceeds 2048 characters.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
uri_too_long
{
  "error": "uri_too_long"
}
Response schema

PublicMarketError

503Sanitized unavailable data/store/owner/provider/budget or max 8 distinct active reads.

Sanitized unavailable data/store/owner/provider/budget or max 8 distinct active reads.

Response headers
Cache-Control

Responses must not be cached.

"no-store"
X-Content-Type-Options

Content sniffing is disabled.

"nosniff"
application/json
public_reads_busy
{
  "error": "public_reads_busy"
}
market_data_unavailable
{
  "error": "market_data_unavailable"
}
candle_data_unavailable
{
  "error": "candle_data_unavailable"
}
Response schema

PublicMarketError

Explicit admission

Approved markets

These exact identities define launch coverage. Venue discovery cannot add or substitute an instrument. Spot and perpetuals are distinct instruments; approval of the market list grants no trading authority.

DisplayTypeVenue coinAsset IDDEX
BTCspot@14210142native
ETHspot@15110151native
SOLspot@15610156native
HYPEspot@10710107native
ZECspot@27210272native
PUMPspot@18810188native
PURRspotPURR/USDC10000native
BTCperpBTC0native
ETHperpETH1native
SOLperpSOL5native
HYPEperpHYPE159native
ZECperpZEC214native
PUMPperpPUMP200native
PURRperpPURR152native
GOLDperpxyz:GOLD110003xyz
SILVERperpxyz:SILVER110026xyz
COPPERperpxyz:COPPER110030xyz
MUperpxyz:MU110015xyz
SKHYperpxyz:SKHY110099xyz
GOOGLperpxyz:GOOGL110012xyz
DRAMperpxyz:DRAM110065xyz
WTIperpxyz:CL110029xyz
SNDKperpxyz:SNDK110016xyz
AAPLperpxyz:AAPL110009xyz
MSFTperpxyz:MSFT110010xyz
SPCXperpxyz:SPCX110076xyz
TSLAperpxyz:TSLA110001xyz
AMZNperpxyz:AMZN110013xyz
AMDperpxyz:AMD110014xyz
INTCperpxyz:INTC110005xyz
METAperpxyz:META110008xyz
COINperpxyz:COIN110007xyz
HOODperpxyz:HOOD110004xyz
ORCLperpxyz:ORCL110011xyz
SP500perpxyz:SP500110052xyz
MAGSperpxyz:MAGS110108xyz
SOXLperpxyz:SOXL110107xyz
EWYperpxyz:EWY110047xyz

Data contract

Response schemas

Linked types resolve to the same OpenAPI contract as the endpoint reference.

EpochMillis

integerint64

Positive Unix epoch milliseconds within the backend safe-integer range. Not seconds or an ISO8601 string.

min: 1
max: 9007199254740991

DecimalString

string

Lossless source decimal string. Preserve precision; do not parse as a binary floating-point value. Scientific notation is not accepted. Individual price/size fields apply additional positive/nonnegative rules.

max length: 100
pattern: ^-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?$

Generation

integer | string | null

Instrument incarnation identifier. Current Go writes a JSON integer; historical string IDs are retained without floating-point conversion. Null is reserved for absent historical generations and cannot establish a usable current instrument.

Coin

"@142" · "@151" · "@156" · "@107" · "@272" · "@188" · "PURR/USDC" · "BTC" · "ETH" · "SOL" · "HYPE" · "ZEC" · "PUMP" · "PURR" · "xyz:GOLD" · "xyz:SILVER" · "xyz:COPPER" · "xyz:MU" · "xyz:SKHY" · "xyz:GOOGL" · "xyz:DRAM" · "xyz:CL" · "xyz:SNDK" · "xyz:AAPL" · "xyz:MSFT" · "xyz:SPCX" · "xyz:TSLA" · "xyz:AMZN" · "xyz:AMD" · "xyz:INTC" · "xyz:META" · "xyz:COIN" · "xyz:HOOD" · "xyz:ORCL" · "xyz:SP500" · "xyz:MAGS" · "xyz:SOXL" · "xyz:EWY"

Exact owner-approved venue coin identifier. Display symbols are not interchangeable with spot pair IDs or builder DEX prefixes.

ProviderObject

object

Extensible provider metadata/context object. Decimal-valued fields remain source strings. Unknown vendor fields are retained; no fixed closed vendor schema is promised.

Additional fields are allowed.

Error

object

Sanitized request/service error. No raw database, provider or credential values are returned.

FieldTypeDescription
errorrequired"approved_registry_unavailable" · "invalid_market" · "invalid_query" · "market_inactive" · "method_not_allowed" · "not_found" · "service_unavailable" · "unauthorized" · "unexpected_body" · "unknown_market" · "uri_too_long"

No additional fields.

ServiceUnavailable

object

FieldTypeDescription
errorrequired"service_unavailable"

No additional fields.

RegistryUnavailable

object

FieldTypeDescription
errorrequired"approved_registry_unavailable"

No additional fields.

Health

object

FieldTypeDescription
statusrequired"alive"
servicerequired"alt-trading-api"

No additional fields.

Ready

object

FieldTypeDescription
statusrequired"ready"

No additional fields.

NotReady

object

FieldTypeDescription
statusrequired"unavailable"

No additional fields.

RegistryMarket

object

Pinned approved identity plus observed metadata. The catalog can be retained and stale; use observedAt/stale and the market observation endpoints. Unknown historical fields may be preserved.

FieldTypeDescription
marketTyperequired"spot" · "perp"
coinrequiredCoin
dexrequired"" · "xyz"

Empty for Hyperliquid native markets; xyz for trade.xyz HIP-3.

assetIdrequiredintegerint64

min: 0

isActiverequiredboolean
metadatarequiredProviderObject
instrumentGenerationrequiredGeneration
contextrequiredProviderObject | null
View fields

ProviderObject | null

Exactly one of

ProviderObject

null

contextObservedAtoptionalEpochMillis
contextQualityoptional"observed" · "inactive" · "invalid_or_unavailable"
discoveryStateoptionalstring

Current metadata validation emits present. Metadata validation does not grant admission to unapproved listings.

Additional fields are allowed.

Catalog

object

FieldTypeDescription
marketsrequiredarray<RegistryMarket>

min items: 38
max items: 38

coveragerequired"approved_launch_universe"
generationrequiredstring
membershipGenerationrequiredstring
observedAtrequiredEpochMillis
stalerequiredboolean
approvalManifestHashrequiredstring

pattern: ^[0-9a-f]{64}$

No additional fields.

BookLevel

object

An aggregated price level. px is positive; sz is nonnegative; n is the provider order count.

FieldTypeDescription
pxrequiredPositiveDecimalString
szrequiredNonnegativeDecimalString
nrequiredinteger

min: 0

Additional fields are allowed.

BookPayload

object

Full observed L2 snapshot, not an incremental order-book delta. Provider fields may be added. An interrupted feed cannot reconstruct unobserved historical books.

FieldTypeDescription
coinrequiredCoin
timerequiredEpochMillis
levelsrequiredarray<array<BookLevel>>

Exactly two sides: bids followed by asks. The current collector validates at most 1,000 levels on each side.

min items: 2
max items: 2

isSnapshotrequiredtrue

Additional fields are allowed.

PerpContext

object

Perpetual context. Funding may be signed; open interest is nonnegative; mark/oracle prices must be positive. Optional provider fields can be absent or null. Unknown vendor fields remain extensible.

FieldTypeDescription
fundingrequiredDecimalString
openInterestrequiredNonnegativeDecimalString
markPxrequiredPositiveDecimalString
oraclePxrequiredPositiveDecimalString
prevDayPxoptionalNonnegativeDecimalString | null
View fields

NonnegativeDecimalString | null

Exactly one of

NonnegativeDecimalString

null

dayNtlVlmoptionalNonnegativeDecimalString | null
View fields

NonnegativeDecimalString | null

Exactly one of

NonnegativeDecimalString

null

dayBaseVlmoptionalNonnegativeDecimalString | null
View fields

NonnegativeDecimalString | null

Exactly one of

NonnegativeDecimalString

null

midPxoptionalNonnegativeDecimalString | null
View fields

NonnegativeDecimalString | null

Exactly one of

NonnegativeDecimalString

null

premiumoptionalDecimalString | null
View fields

DecimalString | null

Exactly one of

DecimalString

null

Additional fields are allowed.

RestContextPayload

object

Payload emitted by the current REST context collector. Its ALT receipt time is known; provider exchange time is not supplied. Historical activeAssetCtx observations may use an extensible provider payload instead.

FieldTypeDescription
coinrequiredCoin
ctxrequiredSpotContext | PerpContext
View fields

SpotContext | PerpContext

sourcerequired"rest"
sourceTimeKnownrequiredfalse
kindrequired"spot" · "perp"

Additional fields are allowed.

Observation

object

Observed provider payload with provenance. ageMs uses exchangeTime when present, otherwise receivedAt. Freshness also checks ALT receipt age. A source time over five seconds in the future is invalid. A book without known source time is stale.

FieldTypeDescription
venuerequired"hyperliquid"
channelrequired"l2Book" · "assetContext" · "activeAssetCtx"
coinrequiredCoin
dexrequired"" · "xyz"
exchangeTimerequiredNullableEpochMillis
receivedAtrequiredEpochMillis
sourceTimeKnownrequiredboolean
ageMsrequiredinteger | null

min: 0

stalerequiredboolean
datarequiredProviderObject

No additional fields.

ContextObservation

Observation & object

All of

Observation

object

FieldTypeDescription
channeloptional"assetContext" · "activeAssetCtx"
staleoptionalfalse
dataoptionalobject

Current REST emissions use RestContextPayload; historical activeAssetCtx remains a provider object. See the schema reference and synthetic example.

View fields

object

Current REST emissions use RestContextPayload; historical activeAssetCtx remains a provider object. See the schema reference and synthetic example.

Additional fields are allowed.

UnavailableObservation

object

A retained observation may be returned for diagnosis with HTTP 503. Its data is not available as fresh research evidence. The error may reflect age, registry state, coverage or instrument-generation mismatch.

FieldTypeDescription
venuerequired"hyperliquid"
channelrequired"l2Book" · "assetContext" · "activeAssetCtx"
coinrequiredCoin
dexrequired"" · "xyz"
exchangeTimerequiredNullableEpochMillis
receivedAtrequiredEpochMillis
sourceTimeKnownrequiredboolean
ageMsrequiredinteger | null

min: 0

stalerequiredtrue
datarequiredProviderObject | null
View fields

ProviderObject | null

Exactly one of

ProviderObject

null

errorrequired"market_data_unavailable"

No additional fields.

MissingObservation

object

FieldTypeDescription
coinrequiredCoin
datarequirednull
stalerequiredtrue
errorrequired"market_data_unavailable"

No additional fields.

InactiveMarket

object

FieldTypeDescription
coinrequiredCoin
stalerequiredtrue
errorrequired"market_inactive"

No additional fields.

MarketEvent

object

Observed trade event. Exact current instrument generation is enforced by the route. Unknown historical envelope/provider fields may be preserved. This read envelope is not an execution receipt.

FieldTypeDescription
marketTypeoptional"spot" · "perp"
venuerequired"hyperliquid"
channelrequired"trades"
coinoptionalCoin
dexoptional"" · "xyz"
eventIdoptionalstring
exchangeTimerequiredNullableEpochMillis
receivedAtrequiredEpochMillis
payloadrequiredTradePayload
instrumentGenerationoptionalGeneration
assetIdoptionalintegerint64

min: 0

registryGenerationoptionalstring

Additional fields are allowed.

Trades

object

FieldTypeDescription
coinrequiredCoin
stalerequiredboolean
tradesrequiredarray<MarketEvent>

max items: 500

coveragerequired"observed_only"
historyCompleterequiredfalse
beforeSemanticsrequired"exclusive_exchange_time"

No additional fields.

ReadinessCoverage

object

FieldTypeDescription
approvedrequiredinteger

min: 0

catalogrequiredinteger

min: 0

activerequiredinteger

min: 0

coveredrequiredinteger

min: 0

expectedGroupsrequiredinteger

min: 0

reportingGroupsrequiredinteger

min: 0

No additional fields.

MarketReadiness

object

FieldTypeDescription
coinrequiredCoin
readyrequiredboolean
researchReadyrequiredboolean
bookStalerequiredboolean
contextReadyrequiredboolean
contextQualityrequired"observed" · "inactive" · "invalid_or_unavailable"

No additional fields.

CollectorCoverage

object

FieldTypeDescription
universeActiverequiredinteger

min: 0

assignedrequiredinteger

min: 0

coveredrequiredinteger

min: 0

requiredConnectionsrequiredinteger

min: 0

requiredSubscriptionsrequiredinteger

min: 0

capacityExceededrequiredboolean

No additional fields.

CollectorSummary

object

FieldTypeDescription
groupIndexrequiredinteger

min: 0

groupCountrequiredinteger

min: 1

connectedrequiredboolean
ingestionReadyrequiredboolean
researchReadyrequiredboolean
coveragerequiredCollectorCoverage
shardCountrequiredinteger

min: 0

queueDepthrequiredinteger

min: 0

queueBytesrequiredinteger

min: 0

reconnectsrequiredinteger

min: 0

lastFailureReasonoptionalstring

No additional fields.

MismatchedCollectorObservation

object

FieldTypeDescription
updatedAtrequiredEpochMillis
groupIndexrequiredinteger

min: 0

validForCurrentApprovalrequiredfalse

No additional fields.

IngestionStatus

object

Private approved-universe readiness and bounded collector summaries. No raw shard, budget or arbitrary market maps are exposed. ready describes collection coverage; researchReady additionally requires fresh source books and observed applicable contexts.

FieldTypeDescription
readyrequiredboolean
reasonrequired"approved_registry_unavailable" · "coverage_incomplete" · "registry_stale" · "ready"
scoperequired"approved"
registryGenerationoptionalstring
membershipGenerationoptionalstring
registryObservedAtoptionalEpochMillis
researchReadyrequiredboolean
approvalManifestHashrequiredstring

pattern: ^[0-9a-f]{64}$

coveragerequiredReadinessCoverage
marketsrequiredarray<MarketReadiness>

max items: 38

observationsrequiredarray<CollectorObservation | MismatchedCollectorObservation>
View fields

CollectorObservation | MismatchedCollectorObservation

No additional fields.

NonnegativeDecimalString

DecimalString & any

Lossless nonnegative decimal string; zero is valid.

All of

DecimalString

any

pattern: ^(?:0|[1-9][0-9]*)(?:\.[0-9]+)?$

FeatureExactDecimal

string

Exact positive derived decimal with no exponent notation. Quotes, valid spread and complete depth quantities are positive. No source-input length cap applies to a calculated sum or midpoint. Preserve it as a string.

pattern: ^(?=[0-9.]*[1-9])(?:0|[1-9][0-9]*)(?:\.[0-9]+)?$

FeatureRatioDecimal

string

Ratio rounded to exactly 18 fractional places, nearest with halves away from zero. A tiny nonzero ratio can round to zero; consult the exact spread/depth values and declared definition.

pattern: ^-?(?:0|[1-9][0-9]*)\.[0-9]{18}$

FeatureRawTimestamp

integerint64

Unmodified source or receipt epoch-millisecond value. An unavailable response can retain a timestamp that fails freshness/validity checks; inspect the corresponding age and stale flag rather than treating presence as valid evidence.

FeatureDefinition

object

Versioned deterministic definition. Mid=(bid+ask)/2; spread=ask-bid; spreadBps=spread/mid*10000; depthImbalance=(five-level bid base quantity - five-level ask base quantity)/(their sum).

FieldTypeDescription
idrequired"l2-top5-v1"
depthLevelsrequired5
ratioDecimalPlacesrequired18
ratioRoundingrequired"nearest_half_away_from_zero"

No additional fields.

FeatureSource

object

Identity-checked input L2 event provenance. Null at the response level when the market is inactive, no book exists, or the input identity cannot be trusted. No durable commit/availability timestamp is invented.

FieldTypeDescription
eventIdrequiredstring

min length: 1
max length: 512

registryGenerationrequiredstring

Registry generation recorded on the input event. It may differ from the current registry generation without changing the instrument identity.

exchangeTimerequiredFeatureRawTimestamp | null
View fields

FeatureRawTimestamp | null

Exactly one of

FeatureRawTimestamp

null

receivedAtrequiredFeatureRawTimestamp

No additional fields.

FeatureFreshness

object

Independent source/receipt clock checks. Either stale/invalid clock makes the feature unavailable. The response-level stale flag additionally covers non-time failures such as disconnection, bad ordering or identity mismatch.

FieldTypeDescription
maxAgeMsrequiredinteger

Configured source and receipt freshness threshold; the current default is 15000 ms.

min: 1

sourceTimeKnownrequiredboolean

True when a source timestamp is present, even if it is invalid. An absent source never borrows a receipt-derived source age.

sourceAgeMsrequiredinteger | null

Source clock age only. Null when source time is absent or invalid. A timestamp at most five seconds ahead has age zero.

min: 0

receiptAgeMsrequiredinteger | null

ALT receipt clock age only. Null when the receipt timestamp is invalid. A timestamp at most five seconds ahead has age zero.

min: 0

sourceStalerequiredboolean

True only when the source clock is unknown, invalid or older than maxAgeMs. Independent of receipt age.

receiptStalerequiredboolean

True only when the receipt clock is invalid or older than maxAgeMs. Independent of source age.

No additional fields.

FeatureUnits

object

Best quotes, midpoint and absolute spread use price units. Visible depth is base-asset quantity, not a quote notional, whole-market depth or guaranteed executable liquidity.

FieldTypeDescription
pricerequired"quote_asset_per_base_asset"
baseDepthrequired"base_asset"
spreadBpsrequired"basis_points"
depthImbalancerequired"ratio"

No additional fields.

FeatureDepth

object

Available counts exclude zero-size rows across the observed, bounded snapshot. Used counts select at most five positive-size levels per side after valid two-sided quotes are established. Short books do not replace the five-level denominator with shorter depth. Counts remain explicit even when values are unavailable.

FieldTypeDescription
requiredLevelsrequired5
bidAvailableLevelsrequiredinteger

min: 0
max: 1000

askAvailableLevelsrequiredinteger

min: 0
max: 1000

bidZeroSizeExcludedrequiredinteger

min: 0
max: 1000

askZeroSizeExcludedrequiredinteger

min: 0
max: 1000

bidLevelsUsedrequiredinteger

min: 0
max: 5

askLevelsUsedrequiredinteger

min: 0
max: 5

completerequiredboolean

No additional fields.

FeatureValues

object

Every measurement is present; JSON null means unavailable. Quote and quantity arithmetic is exact. Ratios alone use the declared fixed rounding precision. Do not turn null into zero.

FieldTypeDescription
bestBidrequiredFeatureExactDecimal | null
View fields

FeatureExactDecimal | null

Exactly one of

FeatureExactDecimal

null

bestAskrequiredFeatureExactDecimal | null
View fields

FeatureExactDecimal | null

Exactly one of

FeatureExactDecimal

null

midrequiredFeatureExactDecimal | null
View fields

FeatureExactDecimal | null

Exactly one of

FeatureExactDecimal

null

spreadrequiredFeatureExactDecimal | null
View fields

FeatureExactDecimal | null

Exactly one of

FeatureExactDecimal

null

bidBaseDepthrequiredFeatureExactDecimal | null
View fields

FeatureExactDecimal | null

Exactly one of

FeatureExactDecimal

null

askBaseDepthrequiredFeatureExactDecimal | null
View fields

FeatureExactDecimal | null

Exactly one of

FeatureExactDecimal

null

spreadBpsrequiredFeatureRatioDecimal & any | null
View fields

FeatureRatioDecimal & any | null

Exactly one of

FeatureRatioDecimal & any

Nonnegative spread basis points, rounded to 18 fractional places. A tiny positive spread can round to zero.

All of

FeatureRatioDecimal

any

pattern: ^[0-9]

null

depthImbalancerequiredFeatureRatioDecimal & any | null
View fields

FeatureRatioDecimal & any | null

Exactly one of

FeatureRatioDecimal & any

Signed top-five base-depth imbalance in [-1,1] after rounding. Positive-size depth on both sides can round a near-boundary value to +1 or -1.

All of

FeatureRatioDecimal

any

pattern: ^-?(?:0\.[0-9]{18}|1\.0{18})$

null

No additional fields.

FeatureAvailableValues

object

All quote and top-five depth values are available.

FieldTypeDescription
bestBidrequiredFeatureExactDecimal
bestAskrequiredFeatureExactDecimal
midrequiredFeatureExactDecimal
spreadrequiredFeatureExactDecimal
bidBaseDepthrequiredFeatureExactDecimal
askBaseDepthrequiredFeatureExactDecimal
spreadBpsrequiredFeatureRatioDecimal & any

Nonnegative spread basis points, rounded to 18 fractional places. A tiny positive spread can round to zero.

View fields

FeatureRatioDecimal & any

Nonnegative spread basis points, rounded to 18 fractional places. A tiny positive spread can round to zero.

All of

FeatureRatioDecimal

any

pattern: ^[0-9]

depthImbalancerequiredFeatureRatioDecimal & any

Signed top-five base-depth imbalance in [-1,1] after rounding. Positive-size depth on both sides can round a near-boundary value to +1 or -1.

View fields

FeatureRatioDecimal & any

Signed top-five base-depth imbalance in [-1,1] after rounding. Positive-size depth on both sides can round a near-boundary value to +1 or -1.

All of

FeatureRatioDecimal

any

pattern: ^-?(?:0\.[0-9]{18}|1\.0{18})$

No additional fields.

FeaturePartialValues

object

Fresh two-sided quote/spread values with insufficient five-level depth. Both depth quantities and imbalance stay null.

FieldTypeDescription
bestBidrequiredFeatureExactDecimal
bestAskrequiredFeatureExactDecimal
midrequiredFeatureExactDecimal
spreadrequiredFeatureExactDecimal
bidBaseDepthrequirednull
askBaseDepthrequirednull
spreadBpsrequiredFeatureRatioDecimal & any

Nonnegative spread basis points, rounded to 18 fractional places. A tiny positive spread can round to zero.

View fields

FeatureRatioDecimal & any

Nonnegative spread basis points, rounded to 18 fractional places. A tiny positive spread can round to zero.

All of

FeatureRatioDecimal

any

pattern: ^[0-9]

depthImbalancerequirednull

No additional fields.

FeatureUnavailableValues

object

No calculated values are returned for unavailable inputs or coverage.

FieldTypeDescription
bestBidrequirednull
bestAskrequirednull
midrequirednull
spreadrequirednull
bidBaseDepthrequirednull
askBaseDepthrequirednull
spreadBpsrequirednull
depthImbalancerequirednull

No additional fields.

BookFeatures

object

Deterministic feature envelope for one approved current-generation L2 snapshot. calculatedAt is the request evaluation clock taken before the snapshot read, not a durable-availability/commit timestamp. Coverage is an observed snapshot only, not a historical continuity claim. Use the qualified success/unavailable subtypes below.

FieldTypeDescription
schemaVersionrequired"alt.market_features.v1"
coinrequiredCoin
dexrequired"" · "xyz"
marketTyperequired"spot" · "perp"
assetIdrequiredinteger

min: 0

instrumentGenerationrequiredstring

Canonical string form of the current approved instrument generation.

min length: 1

registryGenerationrequiredstring

Current validated registry generation; distinguish it from source.registryGeneration.

min length: 1

approvalManifestHashrequiredstring

pattern: ^[0-9a-f]{64}$

calculatedAtrequiredEpochMillis
coveragerequired"observed_snapshot"
qualityrequired"available" · "partial" · "unavailable"
stalerequiredboolean
reasonoptional"insufficient_depth" · "market_inactive" · "book_unavailable" · "input_identity_unavailable" · "registry_stale" · "collection_unavailable" · "book_stale" · "input_payload_mismatch" · "invalid_book" · "one_sided_or_empty_book" · "crossed_or_locked_book"
erroroptional"market_data_unavailable"
definitionrequiredFeatureDefinition
sourcerequiredFeatureSource | null
View fields

FeatureSource | null

Exactly one of

FeatureSource

null

freshnessrequiredFeatureFreshness
unitsrequiredFeatureUnits
depthrequiredFeatureDepth
valuesrequiredFeatureValues

No additional fields.

AvailableBookFeatures

BookFeatures & object

HTTP 200 with a fresh valid two-sided book and at least five positive-size levels on both sides. reason and error are omitted.

All of

BookFeatures

object

FieldTypeDescription
qualityoptional"available"
staleoptionalfalse
reasonoptionalnever
erroroptionalnever
sourceoptionalFeatureSource & object
View fields

FeatureSource & object

All of

FeatureSource

object

FieldTypeDescription
exchangeTimeoptionalEpochMillis
receivedAtoptionalEpochMillis
freshnessoptionalFeatureFreshness & object
View fields

FeatureFreshness & object

All of

FeatureFreshness

object

FieldTypeDescription
sourceTimeKnownoptionaltrue
sourceAgeMsoptionalinteger

min: 0

receiptAgeMsoptionalinteger

min: 0

sourceStaleoptionalfalse
receiptStaleoptionalfalse
depthoptionalFeatureDepth & object
View fields

FeatureDepth & object

All of

FeatureDepth

object

FieldTypeDescription
completeoptionaltrue
bidAvailableLevelsoptionalany

min: 5

askAvailableLevelsoptionalany

min: 5

bidLevelsUsedoptional5
askLevelsUsedoptional5
valuesoptionalFeatureAvailableValues

PartialBookFeatures

BookFeatures & object

HTTP 200 with fresh quote/spread values but fewer than five positive-size levels on at least one side. All three depth values remain explicitly null.

All of

BookFeatures

object

FieldTypeDescription
qualityoptional"partial"
staleoptionalfalse
reasonrequired"insufficient_depth"
erroroptionalnever
sourceoptionalFeatureSource & object
View fields

FeatureSource & object

All of

FeatureSource

object

FieldTypeDescription
exchangeTimeoptionalEpochMillis
receivedAtoptionalEpochMillis
freshnessoptionalFeatureFreshness & object
View fields

FeatureFreshness & object

All of

FeatureFreshness

object

FieldTypeDescription
sourceTimeKnownoptionaltrue
sourceAgeMsoptionalinteger

min: 0

receiptAgeMsoptionalinteger

min: 0

sourceStaleoptionalfalse
receiptStaleoptionalfalse
depthoptionalFeatureDepth & object & object | object
View fields

FeatureDepth & object & object | object

All of

FeatureDepth

object

FieldTypeDescription
completeoptionalfalse
bidAvailableLevelsoptionalany

min: 1

askAvailableLevelsoptionalany

min: 1

bidLevelsUsedoptionalany

min: 1

askLevelsUsedoptionalany

min: 1

object | object

Any of

object

FieldTypeDescription
bidAvailableLevelsoptionalany

max: 4

object

FieldTypeDescription
askAvailableLevelsoptionalany

max: 4

valuesoptionalFeaturePartialValues

UnavailableBookFeatures

BookFeatures & object & object | object

HTTP 503 for inactive/missing/mismatched/stale/invalid data or unavailable collection. source is null for market_inactive, book_unavailable and input_identity_unavailable; otherwise it preserves identity-checked input provenance. All calculated values are null. Clock flags retain their independent meanings even when another gate failed.

All of

BookFeatures

object

FieldTypeDescription
qualityoptional"unavailable"
staleoptionaltrue
reasonrequired"market_inactive" · "book_unavailable" · "input_identity_unavailable" · "registry_stale" · "collection_unavailable" · "book_stale" · "input_payload_mismatch" · "invalid_book" · "one_sided_or_empty_book" · "crossed_or_locked_book"
errorrequired"market_data_unavailable"
depthoptionalFeatureDepth & object
View fields

FeatureDepth & object

All of

FeatureDepth

object

FieldTypeDescription
completeoptionalfalse
valuesoptionalFeatureUnavailableValues

object | object

Exactly one of

object

FieldTypeDescription
reasonoptional"market_inactive" · "book_unavailable" · "input_identity_unavailable"
sourceoptionalnull
freshnessoptionalobject
View fields

object

FieldTypeDescription
sourceTimeKnownoptionalfalse
sourceAgeMsoptionalnull
receiptAgeMsoptionalnull
sourceStaleoptionaltrue
receiptStaleoptionaltrue
depthoptionalobject
View fields

object

FieldTypeDescription
bidAvailableLevelsoptional0
askAvailableLevelsoptional0
bidLevelsUsedoptional0
askLevelsUsedoptional0
bidZeroSizeExcludedoptional0
askZeroSizeExcludedoptional0

object

FieldTypeDescription
reasonoptional"registry_stale" · "collection_unavailable" · "book_stale" · "input_payload_mismatch" · "invalid_book" · "one_sided_or_empty_book" · "crossed_or_locked_book"
sourceoptionalFeatureSource

PublicMarketIdentity

object

FieldTypeDescription
coinrequiredCoin
dexrequiredstring
marketTyperequired"spot" · "perp"
assetIdrequiredinteger

min: 0

instrumentGenerationrequiredstring

min length: 1
max length: 200

No additional fields.

PublicDataSource

object

Unavailable or invalid source clocks/event provenance produce source=null and per-market unavailable data; they never create invented receipt/source timestamps or suppress unrelated markets.

FieldTypeDescription
channelrequired"assetContext" · "activeAssetCtx" · "l2Book"
eventIdrequiredstring

min length: 1
max length: 256

exchangeTimerequiredEpochMillis | null
View fields

EpochMillis | null

Any of

EpochMillis

null

receivedAtrequiredEpochMillis
sourceTimeKnownrequiredboolean
maxAgeMsrequired15000 · 120000
stalerequiredboolean

No additional fields.

PublicMarketSummary

object

price is venue markPx in quote units per base asset, not a guaranteed execution price. change24hPercent=(markPx-prevDayPx)/prevDayPx*100, rounded to 18 fractional places, nearest halves away from zero. volume24hQuote is venue-reported dayNtlVlm in quote units; do not infer collateral currency. Open interest is venue base units; openInterestQuote is an exact mark-price valuation, not an independently sourced quote OI. Funding is signed fraction per hour. Spot funding and OI are null. Unavailable context emits null values; unknown source time stays null even with a fresh receipt.

FieldTypeDescription
identityrequiredPublicMarketIdentity
displayNamerequiredstring
isActiverequiredboolean
qualityrequired"available" · "unavailable"
reasonoptionalstring
pricerequiredPositiveDecimalString | null
View fields

PositiveDecimalString | null

priceKindrequired"mark"
previousDayPricerequiredPositiveDecimalString | null
View fields

PositiveDecimalString | null

change24hPercentrequiredFeatureRatioDecimal | null
View fields

FeatureRatioDecimal | null

volume24hQuoterequiredNonnegativeDecimalString | null
View fields

NonnegativeDecimalString | null

openInterestBaserequiredNonnegativeDecimalString | null
View fields

NonnegativeDecimalString | null

openInterestQuoterequiredPublicDerivedNonnegativeDecimal | null
View fields

PublicDerivedNonnegativeDecimal | null

hourlyFundingRaterequiredDecimalString | null
View fields

DecimalString | null

Any of

DecimalString

null

sourcerequiredPublicDataSource | null
View fields

PublicDataSource | null

No additional fields.

PublicOrderBook

object

At most20 positive-size rows per side. Bids strictly descend and asks strictly ascend; crossed, locked, one-sided, stale, disconnected or mismatched books emit no levels or values. Fresh short books are valid snapshots; displayed depth never claims full liquidity.

FieldTypeDescription
qualityrequired"available" · "unavailable"
reasonoptionalstring
bidsrequiredarray<PublicBookLevel>

max items: 20

asksrequiredarray<PublicBookLevel>

max items: 20

sourcerequiredPublicDataSource | null
View fields

PublicDataSource | null

spreadrequiredFeatureExactDecimal | null
View fields

FeatureExactDecimal | null

midpointrequiredFeatureExactDecimal | null
View fields

FeatureExactDecimal | null

No additional fields.

PublicTrade

object

Venue-reported aggressor side (B=buy,A=sell), not a user fill. Observed-only records may be old; source and receipt timestamps are distinct.

FieldTypeDescription
pricerequiredPositiveDecimalString
sizerequiredPositiveDecimalString
siderequired"buy" · "sell"
exchangeTimerequiredEpochMillis
receivedAtrequiredEpochMillis

No additional fields.

PublicMarketSummaries

object

FieldTypeDescription
schemaVersionrequired"alt.public_market_data.v1"
approvalManifestHashrequired"04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
observedAtrequiredEpochMillis
marketsrequiredarray<PublicMarketSummary>

min items: 38
max items: 38

No additional fields.

PublicMarketSnapshot

object

FieldTypeDescription
schemaVersionrequired"alt.public_market_data.v1"
approvalManifestHashrequired"04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
observedAtrequiredEpochMillis
marketrequiredPublicMarketSummary
bookrequiredPublicOrderBook
tradesrequiredarray<PublicTrade>

max items: 50

tradesCoveragerequired"observed_only"

No additional fields.

PublicCandle

object

Provider candle, exact coin/interval, strictly increasing unique bucket opens, closeTime=openTime+interval-1ms, consistent OHLC range. Current bars can change. isClosed requires closeTime < actual provider receivedAt; a cached partial bar does not become final merely because wall time passes.

FieldTypeDescription
openTimerequiredEpochMillis
closeTimerequiredEpochMillis
openrequiredPositiveDecimalString
highrequiredPositiveDecimalString
lowrequiredPositiveDecimalString
closerequiredPositiveDecimalString
volumeBaserequiredNonnegativeDecimalString
tradeCountrequiredinteger

min: 0

isClosedrequiredboolean

No additional fields.

PublicCandleGap

object

A missing requested bucket span [startTime,endTime), including leading/trailing gaps. No synthetic flat candles or zero volumes fill absent buckets.

FieldTypeDescription
startTimerequiredEpochMillis
endTimerequiredEpochMillis

No additional fields.

PublicCandles

object

FieldTypeDescription
schemaVersionrequired"alt.public_market_data.v1"
approvalManifestHashrequired"04c6bf8b7ef675d007704d1ce62940f504a0590f19cf4f10630063b9a841e7e6"
observedAtrequiredEpochMillis
identityrequiredPublicMarketIdentity
intervalrequired"1m" · "3m" · "5m" · "15m" · "30m" · "1h" · "2h" · "4h" · "8h" · "12h" · "1d"
startTimerequiredEpochMillis
endTimerequiredEpochMillis
receivedAtrequiredEpochMillis
qualityrequired"available" · "empty"
historyCompleterequiredfalse
coveragerequired"provider_recent_5000"
candlesrequiredarray<PublicCandle>

max items: 500

gapsrequiredarray<PublicCandleGap>

max items: 501

No additional fields.

PublicMarketError

object

FieldTypeDescription
errorrequired"uri_too_long" · "method_not_allowed" · "unexpected_body" · "not_found" · "public_read_rate_limited" · "invalid_query" · "invalid_market" · "unknown_market" · "public_reads_busy" · "market_data_unavailable" · "candle_data_unavailable"

No additional fields.

PublicMarketHealth

object

FieldTypeDescription
statusrequired"alive"

No additional fields.

PublicDerivedNonnegativeDecimal

string

Exact nonnegative derived decimal with no exponent notation or source-input length cap. Zero is a measured value only when the validated source supplies zero.

pattern: ^(?:0|[1-9][0-9]*)(?:\.[0-9]+)?$