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
- Choose a plan. Precision+ includes REST access. Quant adds request capacity, recorded history, explanations and the monthly settled archive.
- 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.
- Replace
pa_live_YOUR_KEYin the curl example above and request five markets. Use a returneduidfor a market or history request.
Build a prediction market research workflow
Find relevant markets
Request
GET /marketswith a topic, category or venue filter. Use each returneduidfor follow-up reads. Check the exact question, outcome and settlement terms before comparing Kalshi and Polymarket contracts.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.Review the evidence over time
Read the market history endpoint and
GET /performancefor 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
| Plan | Rate limit | What it reads |
|---|---|---|
| Public, no key | Public access; no account key quota | Today'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 seconds | The published market cohort with its allowed model block and receipt, and retained native history. |
| Quant Research Desk | 600 requests per hour per account; 20 per 10 seconds | Precision+ 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.
/api/v1/markets
Key optionalList 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
| Name | In | Type | Notes |
|---|---|---|---|
status | query | string, one of active, settled (default active) | |
category | query | string, one of sports, trading, crypto, stocks, weather, politics, economics, financials, technology, culture, world, other | |
provider | query | string, one of kalshi, polymarket | |
search | query | string (2 to 120 characters) | Text to match in the question or ticker. |
sort | query | string, one of default, edge, conviction, liquidity, date (default default) | |
limit | query | integer (default 50, 1 to 250) | Rows per page. |
offset | query | integer (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_id | query | string (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. |
history | query | string, one of none | Optional 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. |
lens | query | string, one of strong_edge | Canonical strong edges with current reliable execution context. Missing or failed reliability is excluded before pagination. |
Response: MarketList
| Field | Type | Notes |
|---|---|---|
api_version required | string, one of v1 | |
access required | Access | The tier this response was projected for. |
data required | array of Market | |
data[].uid required | string or null | provider:external_id |
data[].provider required | string or null, one of kalshi, polymarket, precision | |
data[].external_id required | string or null | |
data[].ticker required | string or null | |
data[].slug required | string or null | |
data[].event_id required | string or null | |
data[].category required | string or null | |
data[].question required | string or null | |
data[].status required | string or null | |
data[].close_time required | string or null | |
data[].is_settled required | boolean | |
data[].outcome required | string or null | |
data[].quotes required | Quotes | |
data[].quotes.yes_bid required | number or null | |
data[].quotes.yes_ask required | number or null | |
data[].quotes.no_bid required | number or null | |
data[].quotes.no_ask required | number or null | |
data[].quotes.last_price required | number or null | |
data[].quotes.market_probability required | number or null | The exchange's implied probability, 0 to 1. |
data[].quotes.volume required | number or null | |
data[].quotes.volume_24h required | number or null | |
data[].quotes.liquidity required | number or null | |
data[].quotes.open_interest | number or null | Venue open interest where published. Missing evidence is null. |
data[].quotes.open_interest_unit | string or null, one of usdc, contracts | USDC position value on Polymarket; contract quantity on Kalshi. |
data[].quotes.observed_at | string or null | When 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_stale | boolean or null | True 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 required | Model or null | |
data[].model.probability required | number or null | The model's probability of YES, 0 to 1. Null when the model publishes no read. |
data[].model.confidence required | number or null | |
data[].model.signal required | string or null | |
data[].model.version required | string or null | |
data[].model.scored_at required | string or null | ISO 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_stale | boolean or null | True 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 required | number or null | Published 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 required | number or null | Fractional 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 required | boolean | True when this row's model numbers are withheld for this caller. |
data[].receipt required | object or null | The prediction receipt: clocks, source revisions and publication state. Never a probability. |
data[].explanation required | Explanation or null | |
data[].explanation.summary required | string or null | |
data[].explanation.signal_policy required | string or object or null | |
data[].explanation.model_input_audit required | object or null | |
data[].explanation.market_thesis required | string or object or null | |
data[].history required | object or null | Quant only: the recorded odds history series. |
data[].settled_preclose required | object or null | For settled markets: the exchange price before close. |
data[].links required | Links | |
data[].links.web required | string or null | The market page on markets.precisionalgorithms.com. |
data[].links.provider_web required | string or null | |
data[].links.provider_app required | string or null | |
data[].lock_reason | string | Present only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort. |
data[].reliability | MarketReliability or null | Optional display evidence. Locked rows include verdict only. Missing evidence is null. |
data[].reliability.verdict required | string or null, one of reliable, thin, stale, suspicious | |
data[].reliability.depth_contracts_at_quote | number or null | |
data[].reliability.quote_age_s | number or null | |
data[].reliability.quote_observed_at | string or null | |
data[].reliability.depth_observed_at | string or null | |
data[].reliability.evaluated_at | string or null | |
data[].reliability.wash_risk | string, one of low, medium, high | |
data[].reliability.wash_evidence | object | |
data[].reliability.wash_evidence.self_trade_share | number or null | |
data[].reliability.wash_evidence.round_trip_share | number or null | |
data[].reliability.wash_evidence.volume_oi_ratio_24h | number or null | |
data[].reliability.wash_evidence.tape_complete | boolean | |
data[].reliability.venue_bias_note | string or null | |
data[].reliability.quote_side | string or null, one of yes, no | |
data[].reliability.quote_price | number or null | |
pagination required | Pagination | |
pagination.offset required | integer | |
pagination.limit required | integer | |
pagination.returned required | integer | |
pagination.next_offset required | integer or null | |
pagination.has_more required | boolean | |
meta required | Meta | |
meta.served_by | string or null | Which lane answered, for diagnostics. |
meta.total_count | integer or null | |
meta.as_of required | string | When this response was assembled (ISO 8601). |
meta.snapshot_id | string or null | Immutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry. |
meta.published_at | string or null | Snapshot publication time, separate from response assembly and model scoring. |
meta.source_generated_at | string or null | Source payload generation time; individual model and observation timestamps may differ. |
meta.freshness | object or null | Snapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at. |
meta.freshness.state | string | Snapshot validity state, fresh on a successful snapshot read. |
meta.freshness.age_ms | number | Snapshot age in milliseconds at response assembly. |
meta.freshness.max_age_ms | number | Maximum snapshot source age in milliseconds. |
meta.expires_at | string or null | Snapshot source validity deadline. A pin and cache never extend this deadline. |
meta.scope | string or null | Published 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
200A page of markets.400A 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).401The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).403Access 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).429The 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.503Temporary 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.
/api/v1/markets/{uid}
Key optionalGet 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
| Name | In | Type | Notes |
|---|---|---|---|
uid required | path | string (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_id | query | string (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
| Field | Type | Notes |
|---|---|---|
api_version required | string, one of v1 | |
access required | Access | The tier this response was projected for. |
data required | Market | |
data.uid required | string or null | provider:external_id |
data.provider required | string or null, one of kalshi, polymarket, precision | |
data.external_id required | string or null | |
data.ticker required | string or null | |
data.slug required | string or null | |
data.event_id required | string or null | |
data.category required | string or null | |
data.question required | string or null | |
data.status required | string or null | |
data.close_time required | string or null | |
data.is_settled required | boolean | |
data.outcome required | string or null | |
data.quotes required | Quotes | |
data.quotes.yes_bid required | number or null | |
data.quotes.yes_ask required | number or null | |
data.quotes.no_bid required | number or null | |
data.quotes.no_ask required | number or null | |
data.quotes.last_price required | number or null | |
data.quotes.market_probability required | number or null | The exchange's implied probability, 0 to 1. |
data.quotes.volume required | number or null | |
data.quotes.volume_24h required | number or null | |
data.quotes.liquidity required | number or null | |
data.quotes.open_interest | number or null | Venue open interest where published. Missing evidence is null. |
data.quotes.open_interest_unit | string or null, one of usdc, contracts | USDC position value on Polymarket; contract quantity on Kalshi. |
data.quotes.observed_at | string or null | When 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_stale | boolean or null | True 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 required | Model or null | |
data.model.probability required | number or null | The model's probability of YES, 0 to 1. Null when the model publishes no read. |
data.model.confidence required | number or null | |
data.model.signal required | string or null | |
data.model.version required | string or null | |
data.model.scored_at required | string or null | ISO 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_stale | boolean or null | True 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 required | number or null | Published 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 required | number or null | Fractional 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 required | boolean | True when this row's model numbers are withheld for this caller. |
data.receipt required | object or null | The prediction receipt: clocks, source revisions and publication state. Never a probability. |
data.explanation required | Explanation or null | |
data.explanation.summary required | string or null | |
data.explanation.signal_policy required | string or object or null | |
data.explanation.model_input_audit required | object or null | |
data.explanation.market_thesis required | string or object or null | |
data.history required | object or null | Quant only: the recorded odds history series. |
data.settled_preclose required | object or null | For settled markets: the exchange price before close. |
data.links required | Links | |
data.links.web required | string or null | The market page on markets.precisionalgorithms.com. |
data.links.provider_web required | string or null | |
data.links.provider_app required | string or null | |
data.lock_reason | string | Present only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort. |
data.reliability | MarketReliability or null | Optional display evidence. Locked rows include verdict only. Missing evidence is null. |
data.reliability.verdict required | string or null, one of reliable, thin, stale, suspicious | |
data.reliability.depth_contracts_at_quote | number or null | |
data.reliability.quote_age_s | number or null | |
data.reliability.quote_observed_at | string or null | |
data.reliability.depth_observed_at | string or null | |
data.reliability.evaluated_at | string or null | |
data.reliability.wash_risk | string, one of low, medium, high | |
data.reliability.wash_evidence | object | |
data.reliability.wash_evidence.self_trade_share | number or null | |
data.reliability.wash_evidence.round_trip_share | number or null | |
data.reliability.wash_evidence.volume_oi_ratio_24h | number or null | |
data.reliability.wash_evidence.tape_complete | boolean | |
data.reliability.venue_bias_note | string or null | |
data.reliability.quote_side | string or null, one of yes, no | |
data.reliability.quote_price | number or null | |
meta required | Meta | |
meta.served_by | string or null | Which lane answered, for diagnostics. |
meta.total_count | integer or null | |
meta.as_of required | string | When this response was assembled (ISO 8601). |
meta.snapshot_id | string or null | Immutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry. |
meta.published_at | string or null | Snapshot publication time, separate from response assembly and model scoring. |
meta.source_generated_at | string or null | Source payload generation time; individual model and observation timestamps may differ. |
meta.freshness | object or null | Snapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at. |
meta.freshness.state | string | Snapshot validity state, fresh on a successful snapshot read. |
meta.freshness.age_ms | number | Snapshot age in milliseconds at response assembly. |
meta.freshness.max_age_ms | number | Maximum snapshot source age in milliseconds. |
meta.expires_at | string or null | Snapshot source validity deadline. A pin and cache never extend this deadline. |
meta.scope | string or null | Published 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
200One market.400A 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).401The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).403Access 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).404market_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.429The 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.503Temporary 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.
/api/v1/markets/{uid}/history
Key optionalGet 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
| Name | In | Type | Notes |
|---|---|---|---|
uid required | path | string (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_id | query | string (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
| Field | Type | Notes |
|---|---|---|
api_version required | string, one of v1 | |
access required | Access | The tier this response was projected for. |
data required | object | |
data.uid required | string | |
data.identity required | string | |
data.external_id required | string | |
data.observed_at required | string or null | |
data.history required | object or null | Native venue history. Only the named venue arrays are present; do not fill missing observations or convert null gaps to zero. |
data.history.n | integer | Number of native observations. 0 means the market has no retained series. |
data.history.t | array of number | Native observation timestamps in Unix seconds, including fractional seconds. |
data.history.t0 | number | First native observation timestamp. |
data.history.t1 | number | Last native observation timestamp. |
data.history.kalshi | array of number or null | Kalshi probabilities aligned with t, when the market is on Kalshi. Actual null gaps remain null. |
data.history.kalshi_t | array of number | Kalshi native observation timestamps when present. |
data.history.polymarket | array of number or null | Polymarket probabilities aligned with t, when the market is on Polymarket. |
data.history.polymarket_t | array of number | Polymarket native observation timestamps when present. |
data.history.history_sampling | string | recorded_union_v1 identifies the retained native-observation representation. |
data.model_history required | object or null | This snapshot API returns null; it does not reconstruct or interpolate model scores. |
meta required | Meta | |
meta.served_by | string or null | Which lane answered, for diagnostics. |
meta.total_count | integer or null | |
meta.as_of required | string | When this response was assembled (ISO 8601). |
meta.snapshot_id | string or null | Immutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry. |
meta.published_at | string or null | Snapshot publication time, separate from response assembly and model scoring. |
meta.source_generated_at | string or null | Source payload generation time; individual model and observation timestamps may differ. |
meta.freshness | object or null | Snapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at. |
meta.freshness.state | string | Snapshot validity state, fresh on a successful snapshot read. |
meta.freshness.age_ms | number | Snapshot age in milliseconds at response assembly. |
meta.freshness.max_age_ms | number | Maximum snapshot source age in milliseconds. |
meta.expires_at | string or null | Snapshot source validity deadline. A pin and cache never extend this deadline. |
meta.scope | string or null | Published 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
200The history.400A 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).401The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).403Access 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).404market_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.429The 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.503Temporary 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.
/api/v1/settled
Key optionalList settled markets
A page of the published settled ledger. With month (Quant only), a page of that month in the settled archive.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
limit | query | integer (default 50, 1 to 250) | Rows per page. |
offset | query | integer (default 0, 0 to 20000) | Rows to skip. Up to 20000 with month; up to 1999 without it. |
month | query | string (pattern ^\d{4}-(0[1-9]|1[0-2])$) | YYYY-MM. Quant Research Desk keys only. |
snapshot_id | query | string (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
| Field | Type | Notes |
|---|---|---|
api_version required | string, one of v1 | |
access required | Access | The tier this response was projected for. |
data required | array of Market | |
data[].uid required | string or null | provider:external_id |
data[].provider required | string or null, one of kalshi, polymarket, precision | |
data[].external_id required | string or null | |
data[].ticker required | string or null | |
data[].slug required | string or null | |
data[].event_id required | string or null | |
data[].category required | string or null | |
data[].question required | string or null | |
data[].status required | string or null | |
data[].close_time required | string or null | |
data[].is_settled required | boolean | |
data[].outcome required | string or null | |
data[].quotes required | Quotes | |
data[].quotes.yes_bid required | number or null | |
data[].quotes.yes_ask required | number or null | |
data[].quotes.no_bid required | number or null | |
data[].quotes.no_ask required | number or null | |
data[].quotes.last_price required | number or null | |
data[].quotes.market_probability required | number or null | The exchange's implied probability, 0 to 1. |
data[].quotes.volume required | number or null | |
data[].quotes.volume_24h required | number or null | |
data[].quotes.liquidity required | number or null | |
data[].quotes.open_interest | number or null | Venue open interest where published. Missing evidence is null. |
data[].quotes.open_interest_unit | string or null, one of usdc, contracts | USDC position value on Polymarket; contract quantity on Kalshi. |
data[].quotes.observed_at | string or null | When 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_stale | boolean or null | True 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 required | Model or null | |
data[].model.probability required | number or null | The model's probability of YES, 0 to 1. Null when the model publishes no read. |
data[].model.confidence required | number or null | |
data[].model.signal required | string or null | |
data[].model.version required | string or null | |
data[].model.scored_at required | string or null | ISO 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_stale | boolean or null | True 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 required | number or null | Published 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 required | number or null | Fractional 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 required | boolean | True when this row's model numbers are withheld for this caller. |
data[].receipt required | object or null | The prediction receipt: clocks, source revisions and publication state. Never a probability. |
data[].explanation required | Explanation or null | |
data[].explanation.summary required | string or null | |
data[].explanation.signal_policy required | string or object or null | |
data[].explanation.model_input_audit required | object or null | |
data[].explanation.market_thesis required | string or object or null | |
data[].history required | object or null | Quant only: the recorded odds history series. |
data[].settled_preclose required | object or null | For settled markets: the exchange price before close. |
data[].links required | Links | |
data[].links.web required | string or null | The market page on markets.precisionalgorithms.com. |
data[].links.provider_web required | string or null | |
data[].links.provider_app required | string or null | |
data[].lock_reason | string | Present only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort. |
data[].reliability | MarketReliability or null | Optional display evidence. Locked rows include verdict only. Missing evidence is null. |
data[].reliability.verdict required | string or null, one of reliable, thin, stale, suspicious | |
data[].reliability.depth_contracts_at_quote | number or null | |
data[].reliability.quote_age_s | number or null | |
data[].reliability.quote_observed_at | string or null | |
data[].reliability.depth_observed_at | string or null | |
data[].reliability.evaluated_at | string or null | |
data[].reliability.wash_risk | string, one of low, medium, high | |
data[].reliability.wash_evidence | object | |
data[].reliability.wash_evidence.self_trade_share | number or null | |
data[].reliability.wash_evidence.round_trip_share | number or null | |
data[].reliability.wash_evidence.volume_oi_ratio_24h | number or null | |
data[].reliability.wash_evidence.tape_complete | boolean | |
data[].reliability.venue_bias_note | string or null | |
data[].reliability.quote_side | string or null, one of yes, no | |
data[].reliability.quote_price | number or null | |
pagination required | Pagination | |
pagination.offset required | integer | |
pagination.limit required | integer | |
pagination.returned required | integer | |
pagination.next_offset required | integer or null | |
pagination.has_more required | boolean | |
meta required | Meta | |
meta.served_by | string or null | Which lane answered, for diagnostics. |
meta.total_count | integer or null | |
meta.as_of required | string | When this response was assembled (ISO 8601). |
meta.snapshot_id | string or null | Immutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry. |
meta.published_at | string or null | Snapshot publication time, separate from response assembly and model scoring. |
meta.source_generated_at | string or null | Source payload generation time; individual model and observation timestamps may differ. |
meta.freshness | object or null | Snapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at. |
meta.freshness.state | string | Snapshot validity state, fresh on a successful snapshot read. |
meta.freshness.age_ms | number | Snapshot age in milliseconds at response assembly. |
meta.freshness.max_age_ms | number | Maximum snapshot source age in milliseconds. |
meta.expires_at | string or null | Snapshot source validity deadline. A pin and cache never extend this deadline. |
meta.scope | string or null | Published 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
200A page of settled markets.400A 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).401The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).403Access 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).429The 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.503Temporary 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.
/api/v1/performance
Key optionalGet 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
| Name | In | Type | Notes |
|---|---|---|---|
window | query | string, 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. |
anchor | query | string, one of first, t_24h, t_6h, t_60m | Any value returns 400 invalid_parameter. The published aggregate has no original-score anchor. Omit this parameter. |
modelVersion | query | string | |
provider | query | string, one of kalshi, polymarket, precision | |
category | query | string | |
contractFamily | query | string | |
snapshot_id | query | string (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
| Field | Type | Notes |
|---|---|---|
api_version required | string, one of v1 | |
access required | Access | The tier this response was projected for. |
data required | object | Published 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 required | string | |
data.asOf | string or null | Aggregate generation time when the rollup is served. Same instant as provenance.sourceGeneratedAt. Not a model score time. |
data.filters required | object | |
data.sample | object | Published sample counts. Read counts with metrics; do not infer precision from an empty sample. |
data.sample.graded | integer | |
data.sample.pending | integer or null | Null when the settled aggregate does not publish this count. |
data.sample.abstained | integer or null | Null when the settled aggregate does not publish this count. |
data.sample.executionEligible | integer or null | Null when the settled aggregate does not publish this count. |
data.sample.settled | integer | Published settled population, when its scope matches the graded cohort. |
data.primary | object | Published scores against the exchange baseline; absent or null values are unavailable metrics. |
data.primary.brier | object | |
data.primary.brier.model | number or null | |
data.primary.brier.exchange | number or null | |
data.primary.brier.skill | number or null | |
data.freshness | object | Age 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.state | string, one of fresh, delayed | fresh while ageSeconds is at most 7,200. delayed above that; the aggregate is still served. |
data.model | object | Model identity for this aggregate. id and version stay null. The rollup mixes models and names no single identity. |
data.series | array of object | Published performance observations, when available. |
data.calibration | array of object | Published calibration bins, when sufficient data is available. |
data.slices | array of object | Filtered premium slices need a website session and are not provided by v1 filter queries. |
data.execution | object or null | Null for the retrospective settled aggregate; this is not a trading execution report. |
data.provenance | object | Source identity and generation time for the published aggregate. |
data.provenance.recordSource | string | |
data.provenance.sourceGeneratedAt | string or null | |
data.provenance.slicesGeneratedAt | string or null | |
meta required | Meta | |
meta.served_by | string or null | Which lane answered, for diagnostics. |
meta.total_count | integer or null | |
meta.as_of required | string | When this response was assembled (ISO 8601). |
meta.snapshot_id | string or null | Immutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry. |
meta.published_at | string or null | Snapshot publication time, separate from response assembly and model scoring. |
meta.source_generated_at | string or null | Source payload generation time; individual model and observation timestamps may differ. |
meta.freshness | object or null | Snapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at. |
meta.freshness.state | string | Snapshot validity state, fresh on a successful snapshot read. |
meta.freshness.age_ms | number | Snapshot age in milliseconds at response assembly. |
meta.freshness.max_age_ms | number | Maximum snapshot source age in milliseconds. |
meta.expires_at | string or null | Snapshot source validity deadline. A pin and cache never extend this deadline. |
meta.scope | string or null | Published 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
200The performance aggregate.400A 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).401The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).403Access 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).429The 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.503Temporary 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.
/api/v1/openapi.json
No keyThis document
Response: object
Status codes
200The OpenAPI 3.1 document.
The Market object
| Field | Type | Notes |
|---|---|---|
uid required | string or null | provider:external_id |
provider required | string or null, one of kalshi, polymarket, precision | |
external_id required | string or null | |
ticker required | string or null | |
slug required | string or null | |
event_id required | string or null | |
category required | string or null | |
question required | string or null | |
status required | string or null | |
close_time required | string or null | |
is_settled required | boolean | |
outcome required | string or null | |
quotes required | Quotes | |
model required | Model or null | |
locked required | boolean | True when this row's model numbers are withheld for this caller. |
receipt required | object or null | The prediction receipt: clocks, source revisions and publication state. Never a probability. |
explanation required | Explanation or null | |
history required | object or null | Quant only: the recorded odds history series. |
settled_preclose required | object or null | For settled markets: the exchange price before close. |
links required | Links | |
lock_reason | string | Present only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort. |
reliability | MarketReliability or null | Optional 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."
}
}| Status | Code | Meaning |
|---|---|---|
| 503 | degraded_empty_feed | A degraded source has no servable data. Honor Retry-After. |
| 400 | invalid_parameter | A query parameter is out of range or not one of its allowed values. Performance window must be all, and any anchor is rejected. |
| 400 | invalid_snapshot_id | Use the exact snapshot_id returned by a response. |
| 400 | snapshot_not_supported | Month archive reads do not accept a snapshot pin. |
| 403 | snapshot_key_required | Snapshot pinning requires an API key. |
| 403 | quant_required | The month archive requires Quant Research Desk. |
| 403 | performance_filter_unavailable | Premium performance filters are not available through v1. Use the public aggregate. |
| 403 | market_history_locked | This public caller cannot read this contract history. Use an eligible key or a current daily free contract. |
| 503 | snapshot_unavailable / snapshot_invalid / snapshot_expired / snapshot_too_large / snapshot_busy | A valid published generation cannot be served. Honor Retry-After; for expiry, restart from the current generation without the old pin. |
| 503 | daily_market_access_expired | The daily free membership evidence expired. Retry later with fresh evidence or use an eligible key. |
| 503 | performance_unavailable | The published performance aggregate cannot be served. Retry later. |
| 503 | settled_archive_unavailable | The month archive cannot be read. Honor Retry-After. |
| 400 | invalid_uid | The uid is not kalshi:<ticker> or polymarket:<id>. |
| 401 | api_key_invalid | The key is malformed or unknown. |
| 401 | api_key_revoked | The key was revoked in Settings. |
| 401 | api_key_required | The MCP server needs a key and none was sent. |
| 403 | api_key_plan_required | The key belongs to an account without a paid plan. |
| 404 | market_not_found | This uid is absent from the valid published cohort. It may still exist at the venue. |
| 404 | market_locked | Without a key, this market is outside today's free selection. |
| 405 | method_not_allowed | The Data API is read only. Use GET. |
| 429 | rate_limited | The account reached its hourly or burst limit. All keys and REST/MCP share the limit. Wait for Retry-After. |
| 503 | api_key_check_unavailable | The key could not be checked. Nothing is served until it can be. Retry. |
| 503 | upstream_unavailable | The market service is unavailable. Retry shortly. |