QuantSet Docs Developer console

Endpoints / Account and integration

Estimate request credits

Calculate a request's maximum charge at the current published rate without executing the data query. Eligible sandbox reads and discovery operations can cost zero.

POST/api/v1/billing/estimate

KeylessFree No API key is required.

View as MarkdownWhole API as text

Response

The response has these fields.

  • operationstring
  • rate_card_versionstring
  • maximum_creditsinteger
  • exactboolean
  • unitsobject
View response example or schema

Workflow examples

What is the maximum cost of a two-block price request?

POST https://api.quantset.dev/api/v1/billing/estimate
Content-Type: application/json

{
  "method": "GET",
  "path": "/prices",
  "params": {
    "ticker": "NVDA",
    "limit": 251
  }
}

Inspect maximum_credits, exact and the returned tariff version before issuing the same data request. Pass X-Max-Credits on that read to enforce your budget.

Reading the results

Estimates use the submitted selectors and page bounds at the published tariff. The actual receipt reports the settled charge, including any applicable free access.

Coverage and limits

An estimate does not reserve credits or fetch observations. Missing data, eligible sample access and returned record counts can reduce the final charge.

Related guides

Use with agents

AI agents call this endpoint over HTTP, or read its Markdown version. Connect Claude, ChatGPT, Cursor or your own agent

Errors

StatusCodeWhat to do
413request_too_largeReduce the size of the request body.
422invalid_parameterCorrect the named parameter and retry.
429rate_limitedWait for Retry-After seconds.
500internal_errorThe request could not be completed.
503temporarily_unavailableRetry safe reads after a short delay.

Questions

Can I try Estimate request credits without signing up?
Yes. This operation is keyless.
Can an AI agent use this?
Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.
What does null mean in the response?
The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.