priorcase
priorcase

Sign in

To make a key, and to see what yours have spent.

Docs

Limits and errors

What each call costs, what your plan includes, and what to do with every error.

What a call costs

Nothing is charged today. There is no checkout yet, so every key sits on the free plan. The rest of this page is how we keep the count, which does not change once money attaches to it. See pricing for the plans.

We count usage in answers; one answer is up to ten moments in one reply, so asking for fifty at once costs five. The count follows the k or limit you send, so work out what a call costs before you make it.

Everything else costs nothing: assets, topics, events, prices, news, plans, spell, across and status. They describe the catalogue instead of reading from it. The reference marks each one.

Will it fit

We never bill past the allowance. We refuse the call instead, and the month turns over at 00:00 UTC on the first. So ask whether a run fits, not what it costs.

Reading a year of one assetAnswersFreeResearchProduction
once a day3652.7 years274 years1,643 years
once an hour8,76042 days11.4 years68 years
every 15 minutes35,04010 days2.9 years17 years
every 5 minutes105,1203 days347 days5.7 years

Read that at k=8, where one call is one answer. Raise k and the whole column multiplies: k=20 doubles it, k=50 is five times. A year read hourly at k=50 takes 43,800 answers, so Research covers 2.3 years of sample rather than 11.

Ask the same moment twice and you pay twice. A past moment never changes, so cache the answer on your side by (asset, at, scale, k) and a re-run costs you nothing.

What every answer tells you

Every call that costs something hands back what it cost and what you have left. Read the meter from your own code instead of opening a browser.

shell
X-Answers-Cost: 5
X-Answers-Limit: 1000
X-Answers-Remaining: 743
X-Answers-Reset: 2026-11-01T00:00:00Z
  • X-Answers-Cost is what this call took. It is the same number you work out from your own k before you send it.
  • X-Answers-Remaining already has this call taken off it. A plan with no monthly limit sends neither it nor X-Answers-Limit.
  • X-Answers-Reset is when the month turns: 00:00 UTC on the first.
  • A free endpoint sends none of these. It counts against nothing.

Running out

  • Two limits, two ways to hit 429. One is the month's allowance, the other is how many answers a second your plan may ask for. Branch on X-Answers-Reason, which is rate or month, instead of reading the sentence in detail.
  • Wait the number of seconds in Retry-After, then send the call again. For the per-second limit that is a moment. For the monthly one it is the rest of the month.
  • The month's count resets at 00:00 UTC on the first. See what each key has spent, by day, in your account.
  • We write down a refused call with a cost of zero, so a month of 429s shows in your usage without spending anything. Treat it as the clearest sign a plan is the wrong size.

Plans

See pricing for the allowances, the rates and what you may do with an answer. This page covers how we keep the count and what comes back when it runs out.

Errors

CodeMeansDo
400We cannot answer the question as askedThe response says which parameter is wrong and why.
401Missing key, or not one of oursSee authentication.
403Valid key, but your plan does not cover thisCompare plans on pricing.
404No such moment, topic or eventNothing to do with your key.
422The time range has no market dataA window covering hours when the market was closed is rejected.
429Out of answers, or too many at onceWait the number of seconds in Retry-After.
503The engine is not respondingRetry after 60 seconds. Nothing was counted against your quota.
json
{
  "detail": "This endpoint needs an API key.
             Send it as `Authorization: Bearer pc_live_…`."
}

Every error is JSON with a detail field that tells you what to do next, not just that the call failed. Branch on the status code and log detail.

Retry 429 and 503. Never retry 400, 401, 403, 404 or 422: they say the same thing however many times you ask. See the quickstart for a worked retry.

The full reference →