The Prediction Markets
Concepts

Rate limits and quotas

Each key has a per-second limit and may have a monthly quota, set by its plan. Every keyed response tells you where you stand.

How limits work

  • Per second: requests in the current second, per key, across all your servers.
  • Per month: requests in the current calendar month (UTC), on plans that have a quota.
  • Call /rate-limit to see your plan's numbers and usage. It is not counted as a data request, but it does pass through the per-second limit.
  • /status needs no key and is not counted.
  • The shared demo key tpm_demo_key_authorized_2026 allows 5 requests per second in total, for everyone.
  • WebSocket connections and subscriptions have their own limits; see WebSocket limits.

Response headers

HeaderSent onMeaning
X-Request-IDEvery responseId of this request. Quote it to support.
X-RateLimit-TierKeyed responsesYour plan key, e.g. tier_1.
X-RateLimit-LimitKeyed responsesRequests allowed per second.
X-RateLimit-RemainingKeyed responsesRequests left in the current second.
X-RateLimit-ResetKeyed responsesSeconds until the per-second window resets (always 1).
X-Quota-LimitPlans with a monthly quotaRequests allowed this month.
X-Quota-RemainingPlans with a monthly quotaRequests left this month.
Retry-After429 responsesSeconds to wait before retrying.
429 response
HTTP/1.1 429 Too Many Requests
X-RateLimit-Tier: demo
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1
Retry-After: 1

{
  "error": {
    "code": "rate_limit.per_second",
    "message": "Rate limit exceeded: 5 requests per second on this plan.",
    "request_id": "0f8969a6-0968-4d7c-9cbb-de379e8c19c4"
  }
}

Stay under the limit

  • Fetch up to 100 prices in one call with /prices instead of one call per contract.
  • Use the WebSocket for prices that change often instead of polling.
  • Cache /categories and event lists for a few minutes.
  • On 429, wait Retry-After seconds. The retry helper does this for you.

Build with TPM

Get your free API key

One key gives you Kalshi and Polymarket events, prices with freshness, price history, cross-venue gaps and the live quotes WebSocket.