Back to Settings, API/MCP

Developer documentation

Prediction market API

Bring published Kalshi and Polymarket data, Precision model probabilities and recorded history into research scripts, notebooks and dashboards with a read-only REST API.

Kalshi and Polymarket data for your research

The Data API returns the markets, model reads, receipts and graded performance that the website shows. It never places an order. Probabilities are numbers from 0 to 1, and a null means no published value, never zero.

Precision Algorithms is an independent research service. Coverage is the published Precision market cohort, with fields determined by your plan and available source evidence. It does not include every contract listed by either venue.

Base URL
https://markets.precisionalgorithms.com/api/v1
Version
1.1.0
curl --compressed -H "Authorization: Bearer pa_live_YOUR_KEY" \
  "https://markets.precisionalgorithms.com/api/v1/markets?limit=5"

From plan to first request

  1. Choose a plan. Precision+ includes REST access. Quant adds request capacity, recorded history, explanations and the monthly settled archive.
  2. After your paid plan is active, open Settings, API/MCP. Create a named key and store it when it is shown. It cannot be shown again.
  3. Replace pa_live_YOUR_KEY in the curl example above and request five markets. Use a returned uid for a market or history request.

Build a prediction market research workflow

  1. Find relevant markets

    Request GET /markets with a topic, category or venue filter. Use each returned uid for follow-up reads. Check the exact question, outcome and settlement terms before comparing Kalshi and Polymarket contracts.

  2. Explain the model and market difference

    Read GET /markets/{uid} to inspect venue quotes, the available Precision model probability and its receipt. Retain quote observation times, score times and the published signal status in your research brief. Quant adds available explanations and recorded history.

  3. Review the evidence over time

    Read the market history endpoint and GET /performance for the published aggregate. History contains recorded observations. The track record is an all-time retrospective settled-market view; missing values remain null.

Start with How to Read for probabilities and gaps, or review the research methodology. For an AI assistant that calls tools, use the MCP server guide.

Authentication

Send a key in the Authorization header: Authorization: Bearer pa_live_.... A key is pa_live_ and 64 hex characters. Create and revoke keys in Settings, API/MCP. A key is shown once when you create it. We store only a hash.

Without a key, the Data API answers with the public shape a signed-out reader sees. Never put a key in browser code or a public repository.

Plans and limits

PlanRate limitWhat it reads
Public, no keyPublic access; no account key quotaToday's free active market cohort and public settled data. Active rows outside the free cohort are omitted.
Precision+60 requests per hour per account; 5 per 10 secondsThe published market cohort with its allowed model block and receipt, and retained native history.
Quant Research Desk600 requests per hour per account; 20 per 10 secondsPrecision+ plus the recorded history series and the explanation block, and the settled archive by month.

Limits count per account, shared across all keys and REST/MCP, in fixed clock hours (UTC). A separate rolling 10-second window limits bursts. Creating another key does not add quota. Admitted keyed responses and quota denials carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds at the end of the hour). When either limit is reached, the API answers 429 rate_limited with a Retry-After header in seconds. Wait at least that long before retrying. For temporary failures, use bounded exponential backoff with jitter, and honor Retry-After on 429 and 503. Cache results in your own client and avoid repeated parallel retries.

Every v1 response includes the three rate headers. Public reads, OpenAPI and preflight use unlimited for Limit and Remaining, and 0 for Reset: no account quota applies. This does not promise unlimited throughput. A request that fails before account admission uses unknown, unknown, 0.

Track record scope

The published track record is an all-time retrospective settled-market aggregate. Omit window or send all. The response echoes filters.window as all and filters.anchor as null. 30d, 90d and any anchor return 400 invalid_parameter.

asOf is the aggregate generation time. freshness.ageSeconds is the age of that generation. freshness.state is fresh while that age is at most 7,200 seconds and delayed above that. model.id, model.version, freshness.lastCheckpointAt and freshness.lastSettlementAt stay null. Read data.provenance.sourceGeneratedAt for the same generation clock and meta snapshot clocks for serving validity. A new snapshot does not create a missing score time.

Publication clocks and polling

The active board has a one-minute publication schedule; the settled board has a five-minute schedule. Model scores and recorded history follow their source and export schedules. A scheduled publish can be delayed or refused by data checks. These clocks are separate from request limits and are not a promise that each field changes on each publish.

meta.as_of is the response time, not the age of every quote or model read. Check model.scored_at and the timestamps in history. A probability is published only with model.scored_at. A fresh response can contain an older score: model.read_stale is true when the score is more than 8 hours old. A null edge or Kelly is not a zero value.

The API reads a bounded published cohort, not the whole live venue catalog. Search and detail reads do not discover extra contracts. A market_not_found 404 means the contract is absent from that valid generation. A missing or expired snapshot returns 503; the request does not start a live build.

Snapshot responses include meta.snapshot_id, published_at, source_generated_at, expires_at, freshness and scope. With a key, pass snapshot_id on later pages to keep one generation. Restart paging when it expires. Month archive reads do not accept this pin. History uses retained native observations with original timestamps and null gaps. A valid market with no usable retained series returns 404 market_history_not_found with a reason.

Poll the board no more often than its publication clock, and budget for pagination and market lookups together. Read history and the settled archive only when your workflow needs them. Quant adds request capacity and data fields; it does not make source data publish faster.

Endpoints

List responses wrap rows as { api_version, access, data, pagination, meta }. A single market is { api_version, access, data, meta }. The access field says which plan answered: public, pro or quant.

GET

/api/v1/markets

Key optional

List markets

A page of the bounded published cohort, using the website's canonical ranked order by default. Without a key, active lists contain only today's permitted free markets. Other active contracts are omitted. A locked row, when returned by an operation, has no model block. Use limit (default 50, maximum 250), pagination.next_offset and a keyed snapshot_id for a stable page sequence.

Parameters

NameInTypeNotes
statusquerystring, one of active, settled (default active)
categoryquerystring, one of sports, trading, crypto, stocks, weather, politics, economics, financials, technology, culture, world, other
providerquerystring, one of kalshi, polymarket
searchquerystring (2 to 120 characters)Text to match in the question or ticker.
sortquerystring, one of default, edge, conviction, liquidity, date (default default)
limitqueryinteger (default 50, 1 to 250)Rows per page.
offsetqueryinteger (default 0, 0 to 1999)A row offset within the filtered published cohort. Follow pagination.next_offset and pin snapshot_id on keyed page sequences. Offsets above 1999 return 400 invalid_parameter.
snapshot_idquerystring (pattern ^(active|settled):[a-f0-9]{64}$)Pin the snapshot_id returned by a prior keyed response. Active and settled retained generations have separate bounds (10 and 35 minutes); expires_at and all source/model deadlines still apply and can end serving earlier. Anonymous pins return 403 snapshot_key_required. A pin cannot be used with month archive queries.
historyquerystring, one of noneOptional list-only projection. Send exactly history=none to return history: null on each row. Omit it to preserve the tier-defined default history. All other fields, pagination, snapshot identity and freshness clocks are unchanged. Detail, history, settled and V2 endpoints do not accept this parameter.
lensquerystring, one of strong_edgeCanonical strong edges with current reliable execution context. Missing or failed reliability is excluded before pagination.

Response: MarketList

GET /api/v1/markets response fields
FieldTypeNotes
api_version requiredstring, one of v1
access requiredAccessThe tier this response was projected for.
data requiredarray of Market
data[].uid requiredstring or nullprovider:external_id
data[].provider requiredstring or null, one of kalshi, polymarket, precision
data[].external_id requiredstring or null
data[].ticker requiredstring or null
data[].slug requiredstring or null
data[].event_id requiredstring or null
data[].category requiredstring or null
data[].question requiredstring or null
data[].status requiredstring or null
data[].close_time requiredstring or null
data[].is_settled requiredboolean
data[].outcome requiredstring or null
data[].quotes requiredQuotes
data[].quotes.yes_bid requirednumber or null
data[].quotes.yes_ask requirednumber or null
data[].quotes.no_bid requirednumber or null
data[].quotes.no_ask requirednumber or null
data[].quotes.last_price requirednumber or null
data[].quotes.market_probability requirednumber or nullThe exchange's implied probability, 0 to 1.
data[].quotes.volume requirednumber or null
data[].quotes.volume_24h requirednumber or null
data[].quotes.liquidity requirednumber or null
data[].quotes.open_interestnumber or nullVenue open interest where published. Missing evidence is null.
data[].quotes.open_interest_unitstring or null, one of usdc, contractsUSDC position value on Polymarket; contract quantity on Kalshi.
data[].quotes.observed_atstring or nullWhen the venue price in this block was observed. A publish, cache or response time never refreshes it. Null on a locked row or when the clock is unknown.
data[].quotes.price_staleboolean or nullTrue when observed_at is more than 30 minutes before the snapshot's published_at, or the price has no readable clock. Derived from the clock alone, on every row. Null on a locked row, a settled row and a row with no price.
data[].model requiredModel or null
data[].model.probability requirednumber or nullThe model's probability of YES, 0 to 1. Null when the model publishes no read.
data[].model.confidence requirednumber or null
data[].model.signal requiredstring or null
data[].model.version requiredstring or null
data[].model.scored_at requiredstring or nullISO time when the model that produced this probability scored it. For a read the server computes when it serves the feed, it is the time of that computation. Null when no such time exists for this model version. A probability, its confidence and its signal are not published without it. Publication, export, training and quote clocks are not used.
data[].model.read_staleboolean or nullTrue when scored_at is more than 8 hours before the snapshot's published_at. Derived from the clock alone, except that a Sports V2 execution row with a valid receipt is false: its receipt has its own deadline. A stale read keeps its probability, edge and kelly, and is not a strong_edge member. Null when probability is null and on a settled row.
data[].model.edge requirednumber or nullPublished model-to-market gap. Null when no gap is published. A stored zero that is not the probability gap is null, not a gap of zero. A true zero gap stays 0. Null when probability or market probability is null.
data[].model.kelly requirednumber or nullFractional Kelly stake on YES, floored at 0. Null when the edge is null, zero or negative, and when the stake is zero, because a zero stake is not a size.
data[].locked requiredbooleanTrue when this row's model numbers are withheld for this caller.
data[].receipt requiredobject or nullThe prediction receipt: clocks, source revisions and publication state. Never a probability.
data[].explanation requiredExplanation or null
data[].explanation.summary requiredstring or null
data[].explanation.signal_policy requiredstring or object or null
data[].explanation.model_input_audit requiredobject or null
data[].explanation.market_thesis requiredstring or object or null
data[].history requiredobject or nullQuant only: the recorded odds history series.
data[].settled_preclose requiredobject or nullFor settled markets: the exchange price before close.
data[].links requiredLinks
data[].links.web requiredstring or nullThe market page on markets.precisionalgorithms.com.
data[].links.provider_web requiredstring or null
data[].links.provider_app requiredstring or null
data[].lock_reasonstringPresent only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort.
data[].reliabilityMarketReliability or nullOptional display evidence. Locked rows include verdict only. Missing evidence is null.
data[].reliability.verdict requiredstring or null, one of reliable, thin, stale, suspicious
data[].reliability.depth_contracts_at_quotenumber or null
data[].reliability.quote_age_snumber or null
data[].reliability.quote_observed_atstring or null
data[].reliability.depth_observed_atstring or null
data[].reliability.evaluated_atstring or null
data[].reliability.wash_riskstring, one of low, medium, high
data[].reliability.wash_evidenceobject
data[].reliability.wash_evidence.self_trade_sharenumber or null
data[].reliability.wash_evidence.round_trip_sharenumber or null
data[].reliability.wash_evidence.volume_oi_ratio_24hnumber or null
data[].reliability.wash_evidence.tape_completeboolean
data[].reliability.venue_bias_notestring or null
data[].reliability.quote_sidestring or null, one of yes, no
data[].reliability.quote_pricenumber or null
pagination requiredPagination
pagination.offset requiredinteger
pagination.limit requiredinteger
pagination.returned requiredinteger
pagination.next_offset requiredinteger or null
pagination.has_more requiredboolean
meta requiredMeta
meta.served_bystring or nullWhich lane answered, for diagnostics.
meta.total_countinteger or null
meta.as_of requiredstringWhen this response was assembled (ISO 8601).
meta.snapshot_idstring or nullImmutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry.
meta.published_atstring or nullSnapshot publication time, separate from response assembly and model scoring.
meta.source_generated_atstring or nullSource payload generation time; individual model and observation timestamps may differ.
meta.freshnessobject or nullSnapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at.
meta.freshness.statestringSnapshot validity state, fresh on a successful snapshot read.
meta.freshness.age_msnumberSnapshot age in milliseconds at response assembly.
meta.freshness.max_age_msnumberMaximum snapshot source age in milliseconds.
meta.expires_atstring or nullSnapshot source validity deadline. A pin and cache never extend this deadline.
meta.scopestring or nullPublished cohort boundary, such as published_active_board or published_settled_ledger; not the entire live venue catalog.
Request and response example

Illustrative response. These values are synthetic, not live market data. Use a uid from your own list response.

curl --compressed \
  -H "Authorization: Bearer $PA_API_KEY" \
  "https://markets.precisionalgorithms.com/api/v1/markets?status=active&provider=kalshi&limit=1"
{
  "api_version": "v1",
  "access": "pro",
  "data": [
    {
      "uid": "kalshi:EXAMPLE",
      "provider": "kalshi",
      "external_id": "EXAMPLE",
      "ticker": "EXAMPLE",
      "slug": null,
      "event_id": null,
      "category": "weather",
      "question": "Illustrative market",
      "status": "active",
      "close_time": "2026-01-02T12:00:00.000Z",
      "is_settled": false,
      "outcome": null,
      "quotes": {
        "yes_bid": 0.45,
        "yes_ask": 0.47,
        "no_bid": 0.53,
        "no_ask": 0.55,
        "last_price": 0.46,
        "market_probability": 0.46,
        "volume": 1000,
        "volume_24h": null,
        "liquidity": null,
        "open_interest": null,
        "open_interest_unit": null,
        "observed_at": "2026-01-01T11:59:30.000Z",
        "price_stale": false
      },
      "model": {
        "probability": 0.5,
        "confidence": null,
        "signal": "watch",
        "version": "example-v1",
        "scored_at": "2026-01-01T11:00:00.000Z",
        "read_stale": false,
        "edge": 0.04,
        "kelly": null
      },
      "locked": false,
      "reliability": null,
      "receipt": null,
      "explanation": null,
      "history": null,
      "settled_preclose": null,
      "links": {
        "web": "https://markets.precisionalgorithms.com/m/kalshi-example",
        "provider_web": null,
        "provider_app": null
      }
    }
  ],
  "meta": {
    "served_by": "data-api-published-snapshot",
    "total_count": 1,
    "as_of": "2026-01-01T12:00:01.000Z",
    "snapshot_id": "active:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "published_at": "2026-01-01T12:00:00.000Z",
    "source_generated_at": "2026-01-01T12:00:00.000Z",
    "expires_at": "2026-01-01T12:02:00.000Z",
    "freshness": {
      "state": "fresh",
      "age_ms": 1000,
      "max_age_ms": 120000
    },
    "scope": "published_active_board"
  },
  "pagination": {
    "offset": 0,
    "limit": 1,
    "returned": 1,
    "next_offset": null,
    "has_more": false
  }
}

Status codes

  • 200 A page of markets.
  • 400 A parameter is invalid: invalid_parameter, invalid_uid, invalid_snapshot_id (malformed pin or wrong lane), or snapshot_not_supported (month archive with a board pin).
  • 401 The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).
  • 403 Access refused: api_key_plan_required (inactive paid plan), quant_required (month archive), performance_filter_unavailable (filtered slices need a web session), market_history_locked, or snapshot_key_required (anonymous pin).
  • 429 The account reached its fixed UTC hourly or rolling 10-second burst budget (rate_limited). All its keys, REST and MCP share both budgets. Wait at least Retry-After seconds.
  • 503 Temporary failure: api_key_check_unavailable, upstream_unavailable, degraded_empty_feed, settled_archive_unavailable, snapshot_unavailable, snapshot_invalid, snapshot_expired, snapshot_too_large, snapshot_busy, daily_market_access_expired or performance_unavailable. Honor Retry-After and use bounded backoff. For snapshot_expired restart paging from a new generation; never treat an empty error response as valid data.
GET

/api/v1/markets/{uid}

Key optional

Get one market

Looks the market up among active markets, then settled ones. Without a key, an active market outside today's free window answers 404 market_locked.

Parameters

NameInTypeNotes
uid requiredpathstring (pattern ^(kalshi|polymarket):[A-Za-z0-9][A-Za-z0-9._-]{1,127}$)provider:external_id, for example kalshi:KXHIGHNY-25NOV01-B60 or polymarket:12345. URL-encode the colon if your client requires it.
snapshot_idquerystring (pattern ^(active|settled):[a-f0-9]{64}$)Pin the snapshot_id returned by a prior keyed response. Active and settled retained generations have separate bounds (10 and 35 minutes); expires_at and all source/model deadlines still apply and can end serving earlier. Anonymous pins return 403 snapshot_key_required. A pin cannot be used with month archive queries.

Response: MarketEnvelope

GET /api/v1/markets/{uid} response fields
FieldTypeNotes
api_version requiredstring, one of v1
access requiredAccessThe tier this response was projected for.
data requiredMarket
data.uid requiredstring or nullprovider:external_id
data.provider requiredstring or null, one of kalshi, polymarket, precision
data.external_id requiredstring or null
data.ticker requiredstring or null
data.slug requiredstring or null
data.event_id requiredstring or null
data.category requiredstring or null
data.question requiredstring or null
data.status requiredstring or null
data.close_time requiredstring or null
data.is_settled requiredboolean
data.outcome requiredstring or null
data.quotes requiredQuotes
data.quotes.yes_bid requirednumber or null
data.quotes.yes_ask requirednumber or null
data.quotes.no_bid requirednumber or null
data.quotes.no_ask requirednumber or null
data.quotes.last_price requirednumber or null
data.quotes.market_probability requirednumber or nullThe exchange's implied probability, 0 to 1.
data.quotes.volume requirednumber or null
data.quotes.volume_24h requirednumber or null
data.quotes.liquidity requirednumber or null
data.quotes.open_interestnumber or nullVenue open interest where published. Missing evidence is null.
data.quotes.open_interest_unitstring or null, one of usdc, contractsUSDC position value on Polymarket; contract quantity on Kalshi.
data.quotes.observed_atstring or nullWhen the venue price in this block was observed. A publish, cache or response time never refreshes it. Null on a locked row or when the clock is unknown.
data.quotes.price_staleboolean or nullTrue when observed_at is more than 30 minutes before the snapshot's published_at, or the price has no readable clock. Derived from the clock alone, on every row. Null on a locked row, a settled row and a row with no price.
data.model requiredModel or null
data.model.probability requirednumber or nullThe model's probability of YES, 0 to 1. Null when the model publishes no read.
data.model.confidence requirednumber or null
data.model.signal requiredstring or null
data.model.version requiredstring or null
data.model.scored_at requiredstring or nullISO time when the model that produced this probability scored it. For a read the server computes when it serves the feed, it is the time of that computation. Null when no such time exists for this model version. A probability, its confidence and its signal are not published without it. Publication, export, training and quote clocks are not used.
data.model.read_staleboolean or nullTrue when scored_at is more than 8 hours before the snapshot's published_at. Derived from the clock alone, except that a Sports V2 execution row with a valid receipt is false: its receipt has its own deadline. A stale read keeps its probability, edge and kelly, and is not a strong_edge member. Null when probability is null and on a settled row.
data.model.edge requirednumber or nullPublished model-to-market gap. Null when no gap is published. A stored zero that is not the probability gap is null, not a gap of zero. A true zero gap stays 0. Null when probability or market probability is null.
data.model.kelly requirednumber or nullFractional Kelly stake on YES, floored at 0. Null when the edge is null, zero or negative, and when the stake is zero, because a zero stake is not a size.
data.locked requiredbooleanTrue when this row's model numbers are withheld for this caller.
data.receipt requiredobject or nullThe prediction receipt: clocks, source revisions and publication state. Never a probability.
data.explanation requiredExplanation or null
data.explanation.summary requiredstring or null
data.explanation.signal_policy requiredstring or object or null
data.explanation.model_input_audit requiredobject or null
data.explanation.market_thesis requiredstring or object or null
data.history requiredobject or nullQuant only: the recorded odds history series.
data.settled_preclose requiredobject or nullFor settled markets: the exchange price before close.
data.links requiredLinks
data.links.web requiredstring or nullThe market page on markets.precisionalgorithms.com.
data.links.provider_web requiredstring or null
data.links.provider_app requiredstring or null
data.lock_reasonstringPresent only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort.
data.reliabilityMarketReliability or nullOptional display evidence. Locked rows include verdict only. Missing evidence is null.
data.reliability.verdict requiredstring or null, one of reliable, thin, stale, suspicious
data.reliability.depth_contracts_at_quotenumber or null
data.reliability.quote_age_snumber or null
data.reliability.quote_observed_atstring or null
data.reliability.depth_observed_atstring or null
data.reliability.evaluated_atstring or null
data.reliability.wash_riskstring, one of low, medium, high
data.reliability.wash_evidenceobject
data.reliability.wash_evidence.self_trade_sharenumber or null
data.reliability.wash_evidence.round_trip_sharenumber or null
data.reliability.wash_evidence.volume_oi_ratio_24hnumber or null
data.reliability.wash_evidence.tape_completeboolean
data.reliability.venue_bias_notestring or null
data.reliability.quote_sidestring or null, one of yes, no
data.reliability.quote_pricenumber or null
meta requiredMeta
meta.served_bystring or nullWhich lane answered, for diagnostics.
meta.total_countinteger or null
meta.as_of requiredstringWhen this response was assembled (ISO 8601).
meta.snapshot_idstring or nullImmutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry.
meta.published_atstring or nullSnapshot publication time, separate from response assembly and model scoring.
meta.source_generated_atstring or nullSource payload generation time; individual model and observation timestamps may differ.
meta.freshnessobject or nullSnapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at.
meta.freshness.statestringSnapshot validity state, fresh on a successful snapshot read.
meta.freshness.age_msnumberSnapshot age in milliseconds at response assembly.
meta.freshness.max_age_msnumberMaximum snapshot source age in milliseconds.
meta.expires_atstring or nullSnapshot source validity deadline. A pin and cache never extend this deadline.
meta.scopestring or nullPublished cohort boundary, such as published_active_board or published_settled_ledger; not the entire live venue catalog.
Request and response example

Illustrative response. These values are synthetic, not live market data. Use a uid from your own list response.

curl --compressed \
  -H "Authorization: Bearer $PA_API_KEY" \
  "https://markets.precisionalgorithms.com/api/v1/markets/kalshi%3AEXAMPLE"
{
  "api_version": "v1",
  "access": "pro",
  "data": {
    "uid": "kalshi:EXAMPLE",
    "provider": "kalshi",
    "external_id": "EXAMPLE",
    "ticker": "EXAMPLE",
    "slug": null,
    "event_id": null,
    "category": "weather",
    "question": "Illustrative market",
    "status": "active",
    "close_time": "2026-01-02T12:00:00.000Z",
    "is_settled": false,
    "outcome": null,
    "quotes": {
      "yes_bid": 0.45,
      "yes_ask": 0.47,
      "no_bid": 0.53,
      "no_ask": 0.55,
      "last_price": 0.46,
      "market_probability": 0.46,
      "volume": 1000,
      "volume_24h": null,
      "liquidity": null,
      "open_interest": null,
      "open_interest_unit": null,
      "observed_at": "2026-01-01T11:59:30.000Z",
      "price_stale": false
    },
    "model": {
      "probability": 0.5,
      "confidence": null,
      "signal": "watch",
      "version": "example-v1",
      "scored_at": "2026-01-01T11:00:00.000Z",
      "read_stale": false,
      "edge": 0.04,
      "kelly": null
    },
    "locked": false,
    "reliability": null,
    "receipt": null,
    "explanation": null,
    "history": null,
    "settled_preclose": null,
    "links": {
      "web": "https://markets.precisionalgorithms.com/m/kalshi-example",
      "provider_web": null,
      "provider_app": null
    }
  },
  "meta": {
    "served_by": "data-api-published-snapshot",
    "total_count": 1,
    "as_of": "2026-01-01T12:00:01.000Z",
    "snapshot_id": "active:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "published_at": "2026-01-01T12:00:00.000Z",
    "source_generated_at": "2026-01-01T12:00:00.000Z",
    "expires_at": "2026-01-01T12:02:00.000Z",
    "freshness": {
      "state": "fresh",
      "age_ms": 1000,
      "max_age_ms": 120000
    },
    "scope": "published_active_board"
  }
}

Status codes

  • 200 One market.
  • 400 A parameter is invalid: invalid_parameter, invalid_uid, invalid_snapshot_id (malformed pin or wrong lane), or snapshot_not_supported (month archive with a board pin).
  • 401 The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).
  • 403 Access refused: api_key_plan_required (inactive paid plan), quant_required (month archive), performance_filter_unavailable (filtered slices need a web session), market_history_locked, or snapshot_key_required (anonymous pin).
  • 404 market_not_found means the uid is absent from the valid published cohort, not proof that the venue has no such contract. market_locked means an anonymous exact lookup is outside today's permitted free cohort.
  • 429 The account reached its fixed UTC hourly or rolling 10-second burst budget (rate_limited). All its keys, REST and MCP share both budgets. Wait at least Retry-After seconds.
  • 503 Temporary failure: api_key_check_unavailable, upstream_unavailable, degraded_empty_feed, settled_archive_unavailable, snapshot_unavailable, snapshot_invalid, snapshot_expired, snapshot_too_large, snapshot_busy, daily_market_access_expired or performance_unavailable. Honor Retry-After and use bounded backoff. For snapshot_expired restart paging from a new generation; never treat an empty error response as valid data.
GET

/api/v1/markets/{uid}/history

Key optional

Get a market's price history

Retained native venue observations from a valid published snapshot, with original timestamps and null gaps. No venue request is started. model_history is null. A market with no usable retained native observations returns 404 market_history_not_found with a reason. A single genuine observation is returned without adding points. A uid absent from the published snapshots returns 404 market_not_found. A snapshot read failure returns 503 with the reader code, such as snapshot_unavailable, snapshot_expired or snapshot_invalid. Without a key only the permitted public cohort is readable.

Parameters

NameInTypeNotes
uid requiredpathstring (pattern ^(kalshi|polymarket):[A-Za-z0-9][A-Za-z0-9._-]{1,127}$)provider:external_id, for example kalshi:KXHIGHNY-25NOV01-B60 or polymarket:12345. URL-encode the colon if your client requires it.
snapshot_idquerystring (pattern ^(active|settled):[a-f0-9]{64}$)Pin the snapshot_id returned by a prior keyed response. Active and settled retained generations have separate bounds (10 and 35 minutes); expires_at and all source/model deadlines still apply and can end serving earlier. Anonymous pins return 403 snapshot_key_required. A pin cannot be used with month archive queries.

Response: History

GET /api/v1/markets/{uid}/history response fields
FieldTypeNotes
api_version requiredstring, one of v1
access requiredAccessThe tier this response was projected for.
data requiredobject
data.uid requiredstring
data.identity requiredstring
data.external_id requiredstring
data.observed_at requiredstring or null
data.history requiredobject or nullNative venue history. Only the named venue arrays are present; do not fill missing observations or convert null gaps to zero.
data.history.nintegerNumber of native observations. 0 means the market has no retained series.
data.history.tarray of numberNative observation timestamps in Unix seconds, including fractional seconds.
data.history.t0numberFirst native observation timestamp.
data.history.t1numberLast native observation timestamp.
data.history.kalshiarray of number or nullKalshi probabilities aligned with t, when the market is on Kalshi. Actual null gaps remain null.
data.history.kalshi_tarray of numberKalshi native observation timestamps when present.
data.history.polymarketarray of number or nullPolymarket probabilities aligned with t, when the market is on Polymarket.
data.history.polymarket_tarray of numberPolymarket native observation timestamps when present.
data.history.history_samplingstringrecorded_union_v1 identifies the retained native-observation representation.
data.model_history requiredobject or nullThis snapshot API returns null; it does not reconstruct or interpolate model scores.
meta requiredMeta
meta.served_bystring or nullWhich lane answered, for diagnostics.
meta.total_countinteger or null
meta.as_of requiredstringWhen this response was assembled (ISO 8601).
meta.snapshot_idstring or nullImmutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry.
meta.published_atstring or nullSnapshot publication time, separate from response assembly and model scoring.
meta.source_generated_atstring or nullSource payload generation time; individual model and observation timestamps may differ.
meta.freshnessobject or nullSnapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at.
meta.freshness.statestringSnapshot validity state, fresh on a successful snapshot read.
meta.freshness.age_msnumberSnapshot age in milliseconds at response assembly.
meta.freshness.max_age_msnumberMaximum snapshot source age in milliseconds.
meta.expires_atstring or nullSnapshot source validity deadline. A pin and cache never extend this deadline.
meta.scopestring or nullPublished cohort boundary, such as published_active_board or published_settled_ledger; not the entire live venue catalog.
Request and response example

Illustrative response. These values are synthetic, not live market data. Use a uid from your own list response.

curl --compressed \
  -H "Authorization: Bearer $PA_API_KEY" \
  "https://markets.precisionalgorithms.com/api/v1/markets/kalshi%3AEXAMPLE/history"
{
  "api_version": "v1",
  "access": "pro",
  "data": {
    "uid": "kalshi:EXAMPLE",
    "identity": "kalshi:EXAMPLE",
    "external_id": "EXAMPLE",
    "observed_at": "2026-01-01T12:00:00.000Z",
    "history": {
      "n": 2,
      "t": [
        1767268680,
        1767268740
      ],
      "t0": 1767268680,
      "t1": 1767268740,
      "kalshi": [
        0.45,
        0.46
      ],
      "kalshi_t": [
        1767268680,
        1767268740
      ],
      "history_sampling": "recorded_union_v1"
    },
    "model_history": null
  },
  "meta": {
    "as_of": "2026-01-01T12:00:01.000Z",
    "snapshot_id": "active:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "published_at": "2026-01-01T12:00:00.000Z",
    "source_generated_at": "2026-01-01T12:00:00.000Z",
    "expires_at": "2026-01-01T12:02:00.000Z",
    "freshness": {
      "state": "fresh",
      "age_ms": 1000,
      "max_age_ms": 120000
    },
    "scope": "published_active_board"
  }
}

Status codes

  • 200 The history.
  • 400 A parameter is invalid: invalid_parameter, invalid_uid, invalid_snapshot_id (malformed pin or wrong lane), or snapshot_not_supported (month archive with a board pin).
  • 401 The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).
  • 403 Access refused: api_key_plan_required (inactive paid plan), quant_required (month archive), performance_filter_unavailable (filtered slices need a web session), market_history_locked, or snapshot_key_required (anonymous pin).
  • 404 market_not_found means the uid is absent from the valid published cohort, not proof that the venue has no such contract. market_locked means an anonymous exact lookup is outside today's permitted free cohort.
  • 429 The account reached its fixed UTC hourly or rolling 10-second burst budget (rate_limited). All its keys, REST and MCP share both budgets. Wait at least Retry-After seconds.
  • 503 Temporary failure: api_key_check_unavailable, upstream_unavailable, degraded_empty_feed, settled_archive_unavailable, snapshot_unavailable, snapshot_invalid, snapshot_expired, snapshot_too_large, snapshot_busy, daily_market_access_expired or performance_unavailable. Honor Retry-After and use bounded backoff. For snapshot_expired restart paging from a new generation; never treat an empty error response as valid data.
GET

/api/v1/settled

Key optional

List settled markets

A page of the published settled ledger. With month (Quant only), a page of that month in the settled archive.

Parameters

NameInTypeNotes
limitqueryinteger (default 50, 1 to 250)Rows per page.
offsetqueryinteger (default 0, 0 to 20000)Rows to skip. Up to 20000 with month; up to 1999 without it.
monthquerystring (pattern ^\d{4}-(0[1-9]|1[0-2])$)YYYY-MM. Quant Research Desk keys only.
snapshot_idquerystring (pattern ^(active|settled):[a-f0-9]{64}$)Pin the snapshot_id returned by a prior keyed response. Active and settled retained generations have separate bounds (10 and 35 minutes); expires_at and all source/model deadlines still apply and can end serving earlier. Anonymous pins return 403 snapshot_key_required. A pin cannot be used with month archive queries.

Response: MarketList

GET /api/v1/settled response fields
FieldTypeNotes
api_version requiredstring, one of v1
access requiredAccessThe tier this response was projected for.
data requiredarray of Market
data[].uid requiredstring or nullprovider:external_id
data[].provider requiredstring or null, one of kalshi, polymarket, precision
data[].external_id requiredstring or null
data[].ticker requiredstring or null
data[].slug requiredstring or null
data[].event_id requiredstring or null
data[].category requiredstring or null
data[].question requiredstring or null
data[].status requiredstring or null
data[].close_time requiredstring or null
data[].is_settled requiredboolean
data[].outcome requiredstring or null
data[].quotes requiredQuotes
data[].quotes.yes_bid requirednumber or null
data[].quotes.yes_ask requirednumber or null
data[].quotes.no_bid requirednumber or null
data[].quotes.no_ask requirednumber or null
data[].quotes.last_price requirednumber or null
data[].quotes.market_probability requirednumber or nullThe exchange's implied probability, 0 to 1.
data[].quotes.volume requirednumber or null
data[].quotes.volume_24h requirednumber or null
data[].quotes.liquidity requirednumber or null
data[].quotes.open_interestnumber or nullVenue open interest where published. Missing evidence is null.
data[].quotes.open_interest_unitstring or null, one of usdc, contractsUSDC position value on Polymarket; contract quantity on Kalshi.
data[].quotes.observed_atstring or nullWhen the venue price in this block was observed. A publish, cache or response time never refreshes it. Null on a locked row or when the clock is unknown.
data[].quotes.price_staleboolean or nullTrue when observed_at is more than 30 minutes before the snapshot's published_at, or the price has no readable clock. Derived from the clock alone, on every row. Null on a locked row, a settled row and a row with no price.
data[].model requiredModel or null
data[].model.probability requirednumber or nullThe model's probability of YES, 0 to 1. Null when the model publishes no read.
data[].model.confidence requirednumber or null
data[].model.signal requiredstring or null
data[].model.version requiredstring or null
data[].model.scored_at requiredstring or nullISO time when the model that produced this probability scored it. For a read the server computes when it serves the feed, it is the time of that computation. Null when no such time exists for this model version. A probability, its confidence and its signal are not published without it. Publication, export, training and quote clocks are not used.
data[].model.read_staleboolean or nullTrue when scored_at is more than 8 hours before the snapshot's published_at. Derived from the clock alone, except that a Sports V2 execution row with a valid receipt is false: its receipt has its own deadline. A stale read keeps its probability, edge and kelly, and is not a strong_edge member. Null when probability is null and on a settled row.
data[].model.edge requirednumber or nullPublished model-to-market gap. Null when no gap is published. A stored zero that is not the probability gap is null, not a gap of zero. A true zero gap stays 0. Null when probability or market probability is null.
data[].model.kelly requirednumber or nullFractional Kelly stake on YES, floored at 0. Null when the edge is null, zero or negative, and when the stake is zero, because a zero stake is not a size.
data[].locked requiredbooleanTrue when this row's model numbers are withheld for this caller.
data[].receipt requiredobject or nullThe prediction receipt: clocks, source revisions and publication state. Never a probability.
data[].explanation requiredExplanation or null
data[].explanation.summary requiredstring or null
data[].explanation.signal_policy requiredstring or object or null
data[].explanation.model_input_audit requiredobject or null
data[].explanation.market_thesis requiredstring or object or null
data[].history requiredobject or nullQuant only: the recorded odds history series.
data[].settled_preclose requiredobject or nullFor settled markets: the exchange price before close.
data[].links requiredLinks
data[].links.web requiredstring or nullThe market page on markets.precisionalgorithms.com.
data[].links.provider_web requiredstring or null
data[].links.provider_app requiredstring or null
data[].lock_reasonstringPresent only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort.
data[].reliabilityMarketReliability or nullOptional display evidence. Locked rows include verdict only. Missing evidence is null.
data[].reliability.verdict requiredstring or null, one of reliable, thin, stale, suspicious
data[].reliability.depth_contracts_at_quotenumber or null
data[].reliability.quote_age_snumber or null
data[].reliability.quote_observed_atstring or null
data[].reliability.depth_observed_atstring or null
data[].reliability.evaluated_atstring or null
data[].reliability.wash_riskstring, one of low, medium, high
data[].reliability.wash_evidenceobject
data[].reliability.wash_evidence.self_trade_sharenumber or null
data[].reliability.wash_evidence.round_trip_sharenumber or null
data[].reliability.wash_evidence.volume_oi_ratio_24hnumber or null
data[].reliability.wash_evidence.tape_completeboolean
data[].reliability.venue_bias_notestring or null
data[].reliability.quote_sidestring or null, one of yes, no
data[].reliability.quote_pricenumber or null
pagination requiredPagination
pagination.offset requiredinteger
pagination.limit requiredinteger
pagination.returned requiredinteger
pagination.next_offset requiredinteger or null
pagination.has_more requiredboolean
meta requiredMeta
meta.served_bystring or nullWhich lane answered, for diagnostics.
meta.total_countinteger or null
meta.as_of requiredstringWhen this response was assembled (ISO 8601).
meta.snapshot_idstring or nullImmutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry.
meta.published_atstring or nullSnapshot publication time, separate from response assembly and model scoring.
meta.source_generated_atstring or nullSource payload generation time; individual model and observation timestamps may differ.
meta.freshnessobject or nullSnapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at.
meta.freshness.statestringSnapshot validity state, fresh on a successful snapshot read.
meta.freshness.age_msnumberSnapshot age in milliseconds at response assembly.
meta.freshness.max_age_msnumberMaximum snapshot source age in milliseconds.
meta.expires_atstring or nullSnapshot source validity deadline. A pin and cache never extend this deadline.
meta.scopestring or nullPublished cohort boundary, such as published_active_board or published_settled_ledger; not the entire live venue catalog.
Request and response example

Illustrative response. These values are synthetic, not live market data. Use a uid from your own list response.

curl --compressed \
  -H "Authorization: Bearer $PA_API_KEY" \
  "https://markets.precisionalgorithms.com/api/v1/settled?limit=1"
{
  "api_version": "v1",
  "access": "pro",
  "data": [
    {
      "uid": "kalshi:EXAMPLE",
      "provider": "kalshi",
      "external_id": "EXAMPLE",
      "ticker": "EXAMPLE",
      "slug": null,
      "event_id": null,
      "category": "weather",
      "question": "Illustrative market",
      "status": "settled",
      "close_time": "2026-01-02T12:00:00.000Z",
      "is_settled": true,
      "outcome": "yes",
      "quotes": {
        "yes_bid": 0.45,
        "yes_ask": 0.47,
        "no_bid": 0.53,
        "no_ask": 0.55,
        "last_price": 0.46,
        "market_probability": 0.46,
        "volume": 1000,
        "volume_24h": null,
        "liquidity": null,
        "open_interest": null,
        "open_interest_unit": null,
        "observed_at": "2026-01-01T11:59:30.000Z",
        "price_stale": false
      },
      "model": {
        "probability": 0.5,
        "confidence": null,
        "signal": "watch",
        "version": "example-v1",
        "scored_at": "2026-01-01T11:00:00.000Z",
        "read_stale": false,
        "edge": 0.04,
        "kelly": null
      },
      "locked": false,
      "reliability": null,
      "receipt": null,
      "explanation": null,
      "history": null,
      "settled_preclose": null,
      "links": {
        "web": "https://markets.precisionalgorithms.com/m/kalshi-example",
        "provider_web": null,
        "provider_app": null
      }
    }
  ],
  "meta": {
    "served_by": "data-api-published-snapshot",
    "total_count": 1,
    "as_of": "2026-01-01T12:00:01.000Z",
    "snapshot_id": "settled:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
    "published_at": "2026-01-01T12:00:00.000Z",
    "source_generated_at": "2026-01-01T12:00:00.000Z",
    "expires_at": "2026-01-01T12:02:00.000Z",
    "freshness": {
      "state": "fresh",
      "age_ms": 1000,
      "max_age_ms": 120000
    },
    "scope": "published_settled_ledger"
  },
  "pagination": {
    "offset": 0,
    "limit": 1,
    "returned": 1,
    "next_offset": null,
    "has_more": false
  }
}

Status codes

  • 200 A page of settled markets.
  • 400 A parameter is invalid: invalid_parameter, invalid_uid, invalid_snapshot_id (malformed pin or wrong lane), or snapshot_not_supported (month archive with a board pin).
  • 401 The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).
  • 403 Access refused: api_key_plan_required (inactive paid plan), quant_required (month archive), performance_filter_unavailable (filtered slices need a web session), market_history_locked, or snapshot_key_required (anonymous pin).
  • 429 The account reached its fixed UTC hourly or rolling 10-second burst budget (rate_limited). All its keys, REST and MCP share both budgets. Wait at least Retry-After seconds.
  • 503 Temporary failure: api_key_check_unavailable, upstream_unavailable, degraded_empty_feed, settled_archive_unavailable, snapshot_unavailable, snapshot_invalid, snapshot_expired, snapshot_too_large, snapshot_busy, daily_market_access_expired or performance_unavailable. Honor Retry-After and use bounded backoff. For snapshot_expired restart paging from a new generation; never treat an empty error response as valid data.
GET

/api/v1/performance

Key optional

Get the published track record

The published all-time retrospective settled-market aggregate. Omit window or send all; data.filters.window is all and data.filters.anchor is null. 30d, 90d and any anchor return 400 invalid_parameter because this aggregate has no rolling window and no original-score anchor. When the rollup is served, data.asOf is the aggregate generation time, the same instant as data.provenance.sourceGeneratedAt, and data.freshness.ageSeconds is the age from that clock. data.freshness.state is fresh while that age is at most 7,200 seconds and delayed above that. That clock is not a model score time. data.freshness.lastCheckpointAt, data.freshness.lastSettlementAt, data.model.id and data.model.version stay null: the rollup has no checkpoint, no last-settlement clock and no single model identity. logLoss, auc and ece stay null. accuracy.value stays null, and accuracy.ci95.low and accuracy.ci95.high stay null. brier.ci95.low and brier.ci95.high stay null. series, calibration and slices are empty arrays. methodology.headlineAnchor, methodology.confidenceInterval and provenance.slicesGeneratedAt stay null. modelVersion, provider, category and contractFamily require a signed-in web session; v1 returns 403 performance_filter_unavailable.

Parameters

NameInTypeNotes
windowquerystring, one of 30d, 90d, all (default all)all selects the published all-time aggregate and is echoed in data.filters.window. 30d and 90d return 400 invalid_parameter. This aggregate has no rolling window.
anchorquerystring, one of first, t_24h, t_6h, t_60mAny value returns 400 invalid_parameter. The published aggregate has no original-score anchor. Omit this parameter.
modelVersionquerystring
providerquerystring, one of kalshi, polymarket, precision
categoryquerystring
contractFamilyquerystring
snapshot_idquerystring (pattern ^(active|settled):[a-f0-9]{64}$)Pin the snapshot_id returned by a prior keyed response. Active and settled retained generations have separate bounds (10 and 35 minutes); expires_at and all source/model deadlines still apply and can end serving earlier. Anonymous pins return 403 snapshot_key_required. A pin cannot be used with month archive queries.

Response: Performance

GET /api/v1/performance response fields
FieldTypeNotes
api_version requiredstring, one of v1
access requiredAccessThe tier this response was projected for.
data requiredobjectPublished performance aggregate. Optional fields depend on the available aggregate; collecting or delayed states can contain null metrics. A zero sample is not a win-rate claim.
data.status requiredstring
data.asOfstring or nullAggregate generation time when the rollup is served. Same instant as provenance.sourceGeneratedAt. Not a model score time.
data.filters requiredobject
data.sampleobjectPublished sample counts. Read counts with metrics; do not infer precision from an empty sample.
data.sample.gradedinteger
data.sample.pendinginteger or nullNull when the settled aggregate does not publish this count.
data.sample.abstainedinteger or nullNull when the settled aggregate does not publish this count.
data.sample.executionEligibleinteger or nullNull when the settled aggregate does not publish this count.
data.sample.settledintegerPublished settled population, when its scope matches the graded cohort.
data.primaryobjectPublished scores against the exchange baseline; absent or null values are unavailable metrics.
data.primary.brierobject
data.primary.brier.modelnumber or null
data.primary.brier.exchangenumber or null
data.primary.brier.skillnumber or null
data.freshnessobjectAge of the aggregate generation. ageSeconds is set when the rollup is served. state is fresh while ageSeconds is at most 7,200 and delayed above that. lastCheckpointAt and lastSettlementAt stay null; the rollup has no checkpoint or last-settlement clock. Distinct from the snapshot publication clock in meta.freshness.
data.freshness.statestring, one of fresh, delayedfresh while ageSeconds is at most 7,200. delayed above that; the aggregate is still served.
data.modelobjectModel identity for this aggregate. id and version stay null. The rollup mixes models and names no single identity.
data.seriesarray of objectPublished performance observations, when available.
data.calibrationarray of objectPublished calibration bins, when sufficient data is available.
data.slicesarray of objectFiltered premium slices need a website session and are not provided by v1 filter queries.
data.executionobject or nullNull for the retrospective settled aggregate; this is not a trading execution report.
data.provenanceobjectSource identity and generation time for the published aggregate.
data.provenance.recordSourcestring
data.provenance.sourceGeneratedAtstring or null
data.provenance.slicesGeneratedAtstring or null
meta requiredMeta
meta.served_bystring or nullWhich lane answered, for diagnostics.
meta.total_countinteger or null
meta.as_of requiredstringWhen this response was assembled (ISO 8601).
meta.snapshot_idstring or nullImmutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry.
meta.published_atstring or nullSnapshot publication time, separate from response assembly and model scoring.
meta.source_generated_atstring or nullSource payload generation time; individual model and observation timestamps may differ.
meta.freshnessobject or nullSnapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at.
meta.freshness.statestringSnapshot validity state, fresh on a successful snapshot read.
meta.freshness.age_msnumberSnapshot age in milliseconds at response assembly.
meta.freshness.max_age_msnumberMaximum snapshot source age in milliseconds.
meta.expires_atstring or nullSnapshot source validity deadline. A pin and cache never extend this deadline.
meta.scopestring or nullPublished cohort boundary, such as published_active_board or published_settled_ledger; not the entire live venue catalog.
Request and response example

Illustrative response. These values are synthetic, not live market data. Use a uid from your own list response.

curl --compressed \
  -H "Authorization: Bearer $PA_API_KEY" \
  "https://markets.precisionalgorithms.com/api/v1/performance?window=all"
{
  "api_version": "v1",
  "access": "pro",
  "data": {
    "status": "ready",
    "asOf": "2026-01-01T11:00:00.000Z",
    "methodologyVersion": "pm-settled-calibration-v1",
    "refreshCadenceSeconds": 60,
    "filters": {
      "window": "all",
      "anchor": null,
      "edgeBucket": null,
      "reliability": null,
      "settledWindow": null,
      "contractFamily": null
    },
    "freshness": {
      "state": "fresh",
      "ageSeconds": 3601,
      "lastCheckpointAt": null,
      "lastSettlementAt": null
    },
    "model": {
      "id": null,
      "version": null
    },
    "sample": {
      "graded": 40,
      "pending": null,
      "abstained": null,
      "executionEligible": null,
      "settled": 40
    },
    "primary": {
      "brier": {
        "model": 0.1,
        "exchange": 0.25,
        "skill": 0.6,
        "ci95": {
          "low": null,
          "high": null
        }
      },
      "logLoss": null,
      "auc": null,
      "ece": null,
      "accuracy": {
        "value": null,
        "ci95": {
          "low": null,
          "high": null
        }
      },
      "sufficiency": {
        "brier": true,
        "auc": false,
        "calibration": false
      }
    },
    "execution": null,
    "series": [],
    "calibration": [],
    "slices": [],
    "methodology": {
      "headlineAnchor": null,
      "baseline": "last_retained_preclose_exchange_probability",
      "confidenceInterval": null,
      "recordOrigin": "retrospective_settled_markets"
    },
    "provenance": {
      "recordSource": "published_settled_ledger_rollup",
      "sourceGeneratedAt": "2026-01-01T11:00:00.000Z",
      "slicesGeneratedAt": null
    }
  },
  "meta": {
    "as_of": "2026-01-01T12:00:01.000Z",
    "snapshot_id": "settled:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
    "published_at": "2026-01-01T12:00:00.000Z",
    "source_generated_at": "2026-01-01T12:00:00.000Z",
    "expires_at": "2026-01-01T12:02:00.000Z",
    "freshness": {
      "state": "fresh",
      "age_ms": 1000,
      "max_age_ms": 120000
    },
    "scope": "published_settled_ledger"
  }
}

Status codes

  • 200 The performance aggregate.
  • 400 A parameter is invalid: invalid_parameter, invalid_uid, invalid_snapshot_id (malformed pin or wrong lane), or snapshot_not_supported (month archive with a board pin).
  • 401 The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).
  • 403 Access refused: api_key_plan_required (inactive paid plan), quant_required (month archive), performance_filter_unavailable (filtered slices need a web session), market_history_locked, or snapshot_key_required (anonymous pin).
  • 429 The account reached its fixed UTC hourly or rolling 10-second burst budget (rate_limited). All its keys, REST and MCP share both budgets. Wait at least Retry-After seconds.
  • 503 Temporary failure: api_key_check_unavailable, upstream_unavailable, degraded_empty_feed, settled_archive_unavailable, snapshot_unavailable, snapshot_invalid, snapshot_expired, snapshot_too_large, snapshot_busy, daily_market_access_expired or performance_unavailable. Honor Retry-After and use bounded backoff. For snapshot_expired restart paging from a new generation; never treat an empty error response as valid data.
GET

/api/v1/openapi.json

No key

This document

Response: object

Status codes

  • 200 The OpenAPI 3.1 document.

The Market object

Market fields
FieldTypeNotes
uid requiredstring or nullprovider:external_id
provider requiredstring or null, one of kalshi, polymarket, precision
external_id requiredstring or null
ticker requiredstring or null
slug requiredstring or null
event_id requiredstring or null
category requiredstring or null
question requiredstring or null
status requiredstring or null
close_time requiredstring or null
is_settled requiredboolean
outcome requiredstring or null
quotes requiredQuotes
model requiredModel or null
locked requiredbooleanTrue when this row's model numbers are withheld for this caller.
receipt requiredobject or nullThe prediction receipt: clocks, source revisions and publication state. Never a probability.
explanation requiredExplanation or null
history requiredobject or nullQuant only: the recorded odds history series.
settled_preclose requiredobject or nullFor settled markets: the exchange price before close.
links requiredLinks
lock_reasonstringPresent only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort.
reliabilityMarketReliability or nullOptional display evidence. Locked rows include verdict only. Missing evidence is null.
Quant market example: explanation and recorded history

This is the complete Market object for an illustrative Quant response. Source names, policy names and audit flags here are synthetic examples, not evidence for a real forecast. Precision+ receives null for explanation and the inline history field. The native history endpoint is separate. Even on Quant, absent evidence can leave either field null.

{
  "uid": "kalshi:EXAMPLE",
  "provider": "kalshi",
  "external_id": "EXAMPLE",
  "ticker": "EXAMPLE",
  "slug": null,
  "event_id": null,
  "category": "weather",
  "question": "Illustrative market",
  "status": "active",
  "close_time": "2026-01-02T12:00:00.000Z",
  "is_settled": false,
  "outcome": null,
  "quotes": {
    "yes_bid": 0.45,
    "yes_ask": 0.47,
    "no_bid": 0.53,
    "no_ask": 0.55,
    "last_price": 0.46,
    "market_probability": 0.46,
    "volume": 1000,
    "volume_24h": null,
    "liquidity": null,
    "open_interest": null,
    "open_interest_unit": null,
    "observed_at": "2026-01-01T11:59:30.000Z",
    "price_stale": false
  },
  "model": {
    "probability": 0.5,
    "confidence": null,
    "signal": "watch",
    "version": "example-v1",
    "scored_at": "2026-01-01T11:00:00.000Z",
    "read_stale": false,
    "edge": 0.04,
    "kelly": null
  },
  "locked": false,
  "reliability": null,
  "receipt": null,
  "explanation": {
    "summary": "Illustrative source summary; not a live forecast.",
    "signal_policy": "example_policy",
    "model_input_audit": {
      "probability_source": "illustrative_source",
      "probability_uses_exchange_price": false
    },
    "market_thesis": "Illustrative thesis."
  },
  "history": {
    "n": 2,
    "t": [
      1767268680,
      1767268740
    ],
    "t0": 1767268680,
    "t1": 1767268740,
    "kalshi": [
      0.45,
      0.46
    ],
    "kalshi_t": [
      1767268680,
      1767268740
    ],
    "history_sampling": "recorded_union_v1"
  },
  "settled_preclose": null,
  "links": {
    "web": "https://markets.precisionalgorithms.com/m/kalshi-example",
    "provider_web": null,
    "provider_app": null
  }
}

Errors

Errors answer { "error": { "code", "message" } }. Match on code; the message is for people.

For 400, correct the input. For 401, check or replace the key. For 403, check the required plan or access. For 404, search the current published cohort. For 429 and temporary 503 responses, honor Retry-After and use bounded backoff. On snapshot_expired, drop the pin and restart from the first page.

{
  "error": {
    "code": "snapshot_expired",
    "message": "The requested snapshot has expired."
  }
}
StatusCodeMeaning
503degraded_empty_feedA degraded source has no servable data. Honor Retry-After.
400invalid_parameterA query parameter is out of range or not one of its allowed values. Performance window must be all, and any anchor is rejected.
400invalid_snapshot_idUse the exact snapshot_id returned by a response.
400snapshot_not_supportedMonth archive reads do not accept a snapshot pin.
403snapshot_key_requiredSnapshot pinning requires an API key.
403quant_requiredThe month archive requires Quant Research Desk.
403performance_filter_unavailablePremium performance filters are not available through v1. Use the public aggregate.
403market_history_lockedThis public caller cannot read this contract history. Use an eligible key or a current daily free contract.
503snapshot_unavailable / snapshot_invalid / snapshot_expired / snapshot_too_large / snapshot_busyA valid published generation cannot be served. Honor Retry-After; for expiry, restart from the current generation without the old pin.
503daily_market_access_expiredThe daily free membership evidence expired. Retry later with fresh evidence or use an eligible key.
503performance_unavailableThe published performance aggregate cannot be served. Retry later.
503settled_archive_unavailableThe month archive cannot be read. Honor Retry-After.
400invalid_uidThe uid is not kalshi:<ticker> or polymarket:<id>.
401api_key_invalidThe key is malformed or unknown.
401api_key_revokedThe key was revoked in Settings.
401api_key_requiredThe MCP server needs a key and none was sent.
403api_key_plan_requiredThe key belongs to an account without a paid plan.
404market_not_foundThis uid is absent from the valid published cohort. It may still exist at the venue.
404market_lockedWithout a key, this market is outside today's free selection.
405method_not_allowedThe Data API is read only. Use GET.
429rate_limitedThe account reached its hourly or burst limit. All keys and REST/MCP share the limit. Wait for Retry-After.
503api_key_check_unavailableThe key could not be checked. Nothing is served until it can be. Retry.
503upstream_unavailableThe market service is unavailable. Retry shortly.

More resources