{"openapi":"3.1.0","info":{"title":"Precision Algorithms Data API","version":"1.1.0","summary":"Read-only prediction-market data, model reads and graded performance.","description":"Version 1 of the Precision Algorithms Data API. Read only: no writes, no websockets, no trade execution. Without a key every path answers the same public shape the website shows a signed-out reader. A Precision+ key (60 requests per clock hour) unlocks the model block, receipts and the history endpoint. A Quant Research Desk key (600 requests per clock hour) adds the explanation block, the recorded history series and the settled archive by month. Probabilities are numbers from 0 to 1. A null number means no published value, never zero. Hourly allowances are shared per account across keys, REST and MCP. Pro burst: 5 per rolling 10 seconds; Quant: 20. Active and settled snapshots follow one-minute and five-minute publication schedules; source checks can delay or refuse a publish. Request capacity is separate from publication and model scoring. Follow Retry-After and add polling jitter. Data reads use a bounded published cohort with no live feed or venue-history fallback. Keyed callers may pin snapshot_id until expires_at; month archive reads do not accept a board pin.","contact":{"name":"Precision Algorithms","url":"https://markets.precisionalgorithms.com/developers/api"}},"servers":[{"url":"https://markets.precisionalgorithms.com"}],"security":[{},{"bearerAuth":[]}],"tags":[{"name":"Markets"},{"name":"Settled"},{"name":"Performance"},{"name":"Meta"},{"name":"MCP"}],"paths":{"/api/v1/markets":{"get":{"tags":["Markets"],"operationId":"listMarkets","summary":"List markets","description":"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":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","settled"],"default":"active"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","enum":["sports","trading","crypto","stocks","weather","politics","economics","financials","technology","culture","world","other"]}},{"name":"provider","in":"query","required":false,"schema":{"type":"string","enum":["kalshi","polymarket"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":120},"description":"Text to match in the question or ticker."},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["default","edge","conviction","liquidity","date"],"default":"default"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":250,"default":50},"description":"Rows per page."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":1999,"default":0},"description":"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."},{"$ref":"#/components/parameters/SnapshotId"},{"name":"history","in":"query","required":false,"schema":{"type":"string","enum":["none"]},"description":"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."},{"in":"query","name":"lens","required":false,"schema":{"type":"string","enum":["strong_edge"]},"description":"Canonical strong edges with current reliable execution context. Missing or failed reliability is excluded before pagination."}],"responses":{"200":{"description":"A page of markets.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/markets/{uid}":{"get":{"tags":["Markets"],"operationId":"getMarket","summary":"Get one market","description":"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":"uid","in":"path","required":true,"description":"provider:external_id, for example kalshi:KXHIGHNY-25NOV01-B60 or polymarket:12345. URL-encode the colon if your client requires it.","schema":{"type":"string","pattern":"^(kalshi|polymarket):[A-Za-z0-9][A-Za-z0-9._-]{1,127}$"}},{"$ref":"#/components/parameters/SnapshotId"}],"responses":{"200":{"description":"One market.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketEnvelope"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/markets/{uid}/history":{"get":{"tags":["Markets"],"operationId":"getMarketHistory","summary":"Get a market's price history","description":"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":"uid","in":"path","required":true,"description":"provider:external_id, for example kalshi:KXHIGHNY-25NOV01-B60 or polymarket:12345. URL-encode the colon if your client requires it.","schema":{"type":"string","pattern":"^(kalshi|polymarket):[A-Za-z0-9][A-Za-z0-9._-]{1,127}$"}},{"$ref":"#/components/parameters/SnapshotId"}],"responses":{"200":{"description":"The history.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/History"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/settled":{"get":{"tags":["Settled"],"operationId":"listSettled","summary":"List settled markets","description":"A page of the published settled ledger. With month (Quant only), a page of that month in the settled archive.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":250,"default":50},"description":"Rows per page."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":20000,"default":0},"description":"Rows to skip. Up to 20000 with month; up to 1999 without it."},{"name":"month","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"description":"YYYY-MM. Quant Research Desk keys only."},{"$ref":"#/components/parameters/SnapshotId"}],"responses":{"200":{"description":"A page of settled markets.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/performance":{"get":{"tags":["Performance"],"operationId":"getPerformance","summary":"Get the published track record","description":"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":"window","in":"query","required":false,"schema":{"type":"string","enum":["30d","90d","all"],"default":"all"},"description":"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."},{"name":"anchor","in":"query","required":false,"schema":{"type":"string","enum":["first","t_24h","t_6h","t_60m"]},"description":"Any value returns 400 invalid_parameter. The published aggregate has no original-score anchor. Omit this parameter."},{"name":"modelVersion","in":"query","required":false,"schema":{"type":"string"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string","enum":["kalshi","polymarket","precision"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"contractFamily","in":"query","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/SnapshotId"}],"responses":{"200":{"description":"The performance aggregate.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Performance"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/openapi.json":{"get":{"tags":["Meta"],"operationId":"getOpenApi","summary":"This document","security":[{}],"responses":{"200":{"description":"The OpenAPI 3.1 document.","content":{"application/json":{"schema":{"type":"object","required":["openapi","info","paths"]}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}}}}}},"/api/mcp":{"post":{"tags":["MCP"],"operationId":"mcp","summary":"MCP server (Streamable HTTP, stateless)","description":"A read-only Model Context Protocol server. POST one JSON-RPC 2.0 message or a batch; the answer is application/json. Methods: initialize, ping, tools/list, tools/call. Tools: search_markets, get_market, get_receipt, get_track_record. A key is required on every request, and each HTTP request counts once against the key's hourly limit. A batch may hold at most one tools/call; each further tools/call in it answers JSON-RPC error -32600 and runs nothing, so every tool call is metered. Under protocol 2025-06-18 (MCP-Protocol-Version header) batching is refused with 400. GET and DELETE answer 405.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/JsonRpcRequest"},{"type":"array","items":{"$ref":"#/components/schemas/JsonRpcRequest"}}]}}}},"responses":{"200":{"description":"A JSON-RPC response, or an array of them for a batch.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/JsonRpcResponse"},{"type":"array","items":{"$ref":"#/components/schemas/JsonRpcResponse"}}]}}}},"202":{"description":"The request held only notifications. No body.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}}},"400":{"description":"Malformed JSON or an invalid JSON-RPC request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"405":{"description":"GET and DELETE are not offered by this stateless server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The request body is larger than 256 KiB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"pa_live_...","description":"An API key from Settings, API keys: pa_live_ followed by 64 lowercase hex characters. Send it as Authorization: Bearer pa_live_..."}},"headers":{"X-RateLimit-Limit":{"description":"Account requests allowed per UTC clock hour after paid admission. unlimited means public reads have no account cap. unknown means no budget was established for this response.","schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"string","enum":["unlimited","unknown"]}]}},"X-RateLimit-Remaining":{"description":"Account requests left in the UTC clock hour after paid admission, never negative. unlimited means public reads have no account cap. unknown means the remaining budget was not established.","schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"string","enum":["unlimited","unknown"]}]}},"X-RateLimit-Reset":{"description":"Unix seconds at the end of the paid account UTC clock hour. 0 means no applicable or established reset.","schema":{"type":"integer","minimum":0}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"responses":{"BadRequest":{"description":"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).","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"The key is unknown, malformed (api_key_invalid) or revoked (api_key_revoked), or a required key is missing (api_key_required).","headers":{"WWW-Authenticate":{"description":"Bearer challenge.","schema":{"type":"string"}},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"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).","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"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.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"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.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"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.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"Access":{"type":"string","enum":["public","pro","quant"],"description":"The tier this response was projected for."},"Meta":{"type":"object","required":["as_of"],"properties":{"served_by":{"type":["string","null"],"description":"Which lane answered, for diagnostics."},"total_count":{"type":["integer","null"]},"as_of":{"type":"string","description":"When this response was assembled (ISO 8601)."},"snapshot_id":{"type":["string","null"],"description":"Immutable active:<sha256> or settled:<sha256> generation. Keyed callers can pass it to pin supported reads until expiry."},"published_at":{"type":["string","null"],"format":"date-time","description":"Snapshot publication time, separate from response assembly and model scoring."},"source_generated_at":{"type":["string","null"],"format":"date-time","description":"Source payload generation time; individual model and observation timestamps may differ."},"freshness":{"type":["object","null"],"additionalProperties":true,"description":"Snapshot freshness state, age_ms and max_age_ms. A cache or pin does not extend expires_at.","properties":{"state":{"type":"string","description":"Snapshot validity state, fresh on a successful snapshot read."},"age_ms":{"type":"number","description":"Snapshot age in milliseconds at response assembly."},"max_age_ms":{"type":"number","description":"Maximum snapshot source age in milliseconds."}}},"expires_at":{"type":["string","null"],"format":"date-time","description":"Snapshot source validity deadline. A pin and cache never extend this deadline."},"scope":{"type":["string","null"],"description":"Published cohort boundary, such as published_active_board or published_settled_ledger; not the entire live venue catalog."}}},"Pagination":{"type":"object","required":["offset","limit","returned","next_offset","has_more"],"properties":{"offset":{"type":"integer"},"limit":{"type":"integer"},"returned":{"type":"integer"},"next_offset":{"type":["integer","null"]},"has_more":{"type":"boolean"}}},"Quotes":{"type":"object","required":["yes_bid","yes_ask","no_bid","no_ask","last_price","market_probability","volume","volume_24h","liquidity"],"properties":{"yes_bid":{"type":["number","null"]},"yes_ask":{"type":["number","null"]},"no_bid":{"type":["number","null"]},"no_ask":{"type":["number","null"]},"last_price":{"type":["number","null"]},"market_probability":{"type":["number","null"],"description":"The exchange's implied probability, 0 to 1."},"volume":{"type":["number","null"]},"volume_24h":{"type":["number","null"]},"liquidity":{"type":["number","null"]},"open_interest":{"type":["number","null"],"description":"Venue open interest where published. Missing evidence is null."},"open_interest_unit":{"type":["string","null"],"enum":["usdc","contracts",null],"description":"USDC position value on Polymarket; contract quantity on Kalshi."},"observed_at":{"type":["string","null"],"format":"date-time","description":"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."},"price_stale":{"type":["boolean","null"],"description":"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."}}},"Model":{"type":"object","required":["probability","confidence","signal","version","scored_at","edge","kelly"],"properties":{"probability":{"type":["number","null"],"description":"The model's probability of YES, 0 to 1. Null when the model publishes no read."},"confidence":{"type":["number","null"]},"signal":{"type":["string","null"]},"version":{"type":["string","null"]},"scored_at":{"type":["string","null"],"description":"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."},"read_stale":{"type":["boolean","null"],"description":"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."},"edge":{"type":["number","null"],"description":"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."},"kelly":{"type":["number","null"],"description":"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."}},"description":"An unlocked model block can be null. A present block can still have probability null when version or confidence metadata exists. Null means no published value; confidence, signal, edge and kelly are null when a stored probability is withheld for lack of scored_at, and edge and kelly are null when probability is null."},"Explanation":{"type":"object","required":["summary","signal_policy","model_input_audit","market_thesis"],"properties":{"summary":{"type":["string","null"]},"signal_policy":{"type":["string","object","null"]},"model_input_audit":{"type":["object","null"]},"market_thesis":{"type":["string","object","null"]}}},"Links":{"type":"object","required":["web","provider_web","provider_app"],"properties":{"web":{"type":["string","null"],"description":"The market page on markets.precisionalgorithms.com."},"provider_web":{"type":["string","null"]},"provider_app":{"type":["string","null"]}}},"Market":{"type":"object","required":["uid","provider","external_id","ticker","slug","event_id","category","question","status","close_time","is_settled","outcome","quotes","model","locked","receipt","explanation","history","settled_preclose","links"],"properties":{"uid":{"type":["string","null"],"description":"provider:external_id"},"provider":{"type":["string","null"],"enum":["kalshi","polymarket","precision",null]},"external_id":{"type":["string","null"]},"ticker":{"type":["string","null"]},"slug":{"type":["string","null"]},"event_id":{"type":["string","null"]},"category":{"type":["string","null"]},"question":{"type":["string","null"]},"status":{"type":["string","null"]},"close_time":{"type":["string","null"]},"is_settled":{"type":"boolean"},"outcome":{"type":["string","null"]},"quotes":{"$ref":"#/components/schemas/Quotes"},"model":{"anyOf":[{"$ref":"#/components/schemas/Model"},{"type":"null"}]},"locked":{"type":"boolean","description":"True when this row's model numbers are withheld for this caller."},"receipt":{"type":["object","null"],"description":"The prediction receipt: clocks, source revisions and publication state. Never a probability."},"explanation":{"anyOf":[{"$ref":"#/components/schemas/Explanation"},{"type":"null"}]},"history":{"type":["object","null"],"description":"Quant only: the recorded odds history series."},"settled_preclose":{"type":["object","null"],"description":"For settled markets: the exchange price before close."},"links":{"$ref":"#/components/schemas/Links"},"lock_reason":{"type":"string","description":"Present only when locked. outside_daily_free_window means the contract is outside the Observer daily free cohort."},"reliability":{"anyOf":[{"$ref":"#/components/schemas/MarketReliability"},{"type":"null"}],"description":"Optional display evidence. Locked rows include verdict only. Missing evidence is null."}}},"MarketList":{"type":"object","required":["api_version","access","data","pagination","meta"],"properties":{"api_version":{"type":"string","enum":["v1"]},"access":{"$ref":"#/components/schemas/Access"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Market"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"meta":{"$ref":"#/components/schemas/Meta"}}},"MarketEnvelope":{"type":"object","required":["api_version","access","data","meta"],"properties":{"api_version":{"type":"string","enum":["v1"]},"access":{"$ref":"#/components/schemas/Access"},"data":{"$ref":"#/components/schemas/Market"},"meta":{"$ref":"#/components/schemas/Meta"}}},"History":{"type":"object","required":["api_version","access","data","meta"],"properties":{"api_version":{"type":"string","enum":["v1"]},"access":{"$ref":"#/components/schemas/Access"},"data":{"type":"object","required":["uid","identity","external_id","observed_at","history","model_history"],"properties":{"uid":{"type":"string"},"identity":{"type":"string"},"external_id":{"type":"string"},"observed_at":{"type":["string","null"]},"history":{"type":["object","null"],"description":"Native venue history. Only the named venue arrays are present; do not fill missing observations or convert null gaps to zero.","properties":{"n":{"type":"integer","description":"Number of native observations. 0 means the market has no retained series."},"t":{"type":"array","items":{"type":"number"},"description":"Native observation timestamps in Unix seconds, including fractional seconds."},"t0":{"type":"number","description":"First native observation timestamp."},"t1":{"type":"number","description":"Last native observation timestamp."},"kalshi":{"type":"array","items":{"type":["number","null"]},"description":"Kalshi probabilities aligned with t, when the market is on Kalshi. Actual null gaps remain null."},"kalshi_t":{"type":"array","items":{"type":"number"},"description":"Kalshi native observation timestamps when present."},"polymarket":{"type":"array","items":{"type":["number","null"]},"description":"Polymarket probabilities aligned with t, when the market is on Polymarket."},"polymarket_t":{"type":"array","items":{"type":"number"},"description":"Polymarket native observation timestamps when present."},"history_sampling":{"type":"string","description":"recorded_union_v1 identifies the retained native-observation representation."}}},"model_history":{"type":["object","null"],"description":"This snapshot API returns null; it does not reconstruct or interpolate model scores."}}},"meta":{"$ref":"#/components/schemas/Meta"}}},"Performance":{"type":"object","required":["api_version","access","data","meta"],"properties":{"api_version":{"type":"string","enum":["v1"]},"access":{"$ref":"#/components/schemas/Access"},"data":{"type":"object","required":["status","filters"],"description":"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.","properties":{"status":{"type":"string"},"asOf":{"type":["string","null"],"description":"Aggregate generation time when the rollup is served. Same instant as provenance.sourceGeneratedAt. Not a model score time."},"filters":{"type":"object"},"sample":{"type":"object","description":"Published sample counts. Read counts with metrics; do not infer precision from an empty sample.","properties":{"graded":{"type":"integer"},"pending":{"type":["integer","null"],"description":"Null when the settled aggregate does not publish this count."},"abstained":{"type":["integer","null"],"description":"Null when the settled aggregate does not publish this count."},"executionEligible":{"type":["integer","null"],"description":"Null when the settled aggregate does not publish this count."},"settled":{"type":"integer","description":"Published settled population, when its scope matches the graded cohort."}}},"primary":{"type":"object","description":"Published scores against the exchange baseline; absent or null values are unavailable metrics.","properties":{"brier":{"type":"object","properties":{"model":{"type":["number","null"]},"exchange":{"type":["number","null"]},"skill":{"type":["number","null"]}}}}},"freshness":{"type":"object","description":"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.","properties":{"state":{"type":"string","enum":["fresh","delayed"],"description":"fresh while ageSeconds is at most 7,200. delayed above that; the aggregate is still served."}}},"model":{"type":"object","description":"Model identity for this aggregate. id and version stay null. The rollup mixes models and names no single identity."},"series":{"type":"array","items":{"type":"object"},"description":"Published performance observations, when available."},"calibration":{"type":"array","items":{"type":"object"},"description":"Published calibration bins, when sufficient data is available."},"slices":{"type":"array","items":{"type":"object"},"description":"Filtered premium slices need a website session and are not provided by v1 filter queries."},"execution":{"type":["object","null"],"description":"Null for the retrospective settled aggregate; this is not a trading execution report."},"provenance":{"type":"object","description":"Source identity and generation time for the published aggregate.","properties":{"recordSource":{"type":"string"},"sourceGeneratedAt":{"type":["string","null"]},"slicesGeneratedAt":{"type":["string","null"]}}}}},"meta":{"$ref":"#/components/schemas/Meta"}}},"JsonRpcRequest":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":["string","number"]},"method":{"type":"string","enum":["initialize","ping","tools/list","tools/call","notifications/initialized"]},"params":{"type":"object"}}},"JsonRpcResponse":{"type":"object","required":["jsonrpc","id"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":["string","number","null"]},"result":{"type":"object"},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}},"MarketReliability":{"type":"object","required":["verdict"],"properties":{"verdict":{"type":["string","null"],"enum":["reliable","thin","stale","suspicious",null]},"depth_contracts_at_quote":{"type":["number","null"],"minimum":0},"quote_age_s":{"type":["number","null"],"minimum":0},"quote_observed_at":{"type":["string","null"],"format":"date-time"},"depth_observed_at":{"type":["string","null"],"format":"date-time"},"evaluated_at":{"type":["string","null"],"format":"date-time"},"wash_risk":{"type":"string","enum":["low","medium","high"]},"wash_evidence":{"type":"object","properties":{"self_trade_share":{"type":["number","null"],"minimum":0,"maximum":1},"round_trip_share":{"type":["number","null"],"minimum":0,"maximum":1},"volume_oi_ratio_24h":{"type":["number","null"],"minimum":0},"tape_complete":{"type":"boolean"}}},"venue_bias_note":{"type":["string","null"],"maxLength":600},"quote_side":{"type":["string","null"],"enum":["yes","no",null]},"quote_price":{"type":["number","null"],"minimum":0,"maximum":1}}}},"parameters":{"SnapshotId":{"name":"snapshot_id","in":"query","schema":{"type":"string","pattern":"^(active|settled):[a-f0-9]{64}$"},"description":"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."}}}}