Skip to navigation

Rate limits

Each account can make 1,000 requests per hour by default. The limit is shared by all API keys on the account. If you need a higher limit, contact support@tradespace.io.

The window is fixed to the clock hour in UTC. The count resets at the start of each hour, for example at 14:00:00 UTC, not one hour after your first request.

Every authenticated response includes these headers, including 429 responses:

HeaderMeaning
X-RateLimit-LimitRequests allowed in the current hour
X-RateLimit-RemainingRequests left in the current hour

When the limit is reached, the API returns 429 Too Many Requests until the next hour starts. A 429 response also includes a Retry-After header with the number of seconds until the window resets. Wait that long, then retry.

Requests rejected with 401 Unauthorized do not count toward the limit.

To fetch data with fewer requests, use a larger limit (up to 200) on list queries. See Pagination and sorting.

Query limits

Each query is also checked before it runs and is rejected if it is too large:

  • Depth: at most 10 levels of nested fields.
  • Complexity: at most 10,000. Complexity estimates how many records the query loads. Scalar fields are free, each object costs 1, each nested list counts as 10 items, and a list query multiplies the cost of one record by its limit.

For example, agreements(limit: 200) { collection { id agreementContacts { contact { id } } } } costs 4,200: 200 agreements, plus 10 agreement contacts and 10 contacts for each.

A rejected query returns no data and an error with 400 in extensions.status, such as Query has complexity of 24200, which exceeds max complexity of 10000. To fix it, lower limit or request fewer nested lists. If your use case needs larger queries, contact support@tradespace.io.