Skip to Content
Finkhoz

Rate limits

How many requests you can make, and what to do when you hit the limit.

Rate limits protect the service for all partners. Limits apply per account, across all of your API keys.

Limits

EndpointDefault limit
All endpoints except masterdata60 requests per minute, with short bursts of up to 20 requests
/v1/masterdataA few requests per hour. Download it once and cache it

Your account may have a different limit agreed with Finkhoz.

The Try in Playground button in these docs has its own, much lower limit, so trying endpoints in the docs never uses up your account's limit. If you hit it, wait a minute.

How it works

Think of your limit as a bucket of tokens. Each request uses one token, and tokens refill at a steady rate (for 60 per minute, one per second). You can send a short burst while the bucket is full. When it is empty, requests are rejected until it refills.

When you hit the limit

The API returns 429 Too Many Requests with a Retry-After header that tells you how many seconds to wait:

HTTP/1.1 429 Too Many Requests
Retry-After: 10

{ "status": "Too Many Requests", "errors": ["rate limit exceeded, retry after 10 seconds"] }

Wait at least Retry-After seconds before sending the request again.

Example (JavaScript):

async function callWithRetry(url, options, maxRetries = 3) {
  for (let attempt = 0; ; attempt++) {
    const res = await fetch(url, options);
    if (res.status !== 429 || attempt === maxRetries) return res;

    const waitSeconds = Number(res.headers.get('Retry-After') ?? 1);
    await new Promise((resolve) => setTimeout(resolve, waitSeconds * 1000));
  }
}

Staying within your limit

  • Cache data that changes slowly. Masterdata, financials and shareholding change rarely. Market pulse and movers change during the day, not every second.
  • Spread out requests instead of sending them all at once.
  • Avoid tight loops. If you need data for many stocks, fetch them steadily rather than in one large burst.

Need a higher limit? Contact Finkhoz.

On this page