# Limits and credits

> Limits per connection and request, and what messages cost in credits.

This page is part of the Intear API docs. The Intear API is at `https://api.intea.rs` and `wss://api.intea.rs/ws`, with no API key. https://docs.intear.tech/api/llms-full.txt has all of its pages in one file, and https://docs.intear.tech/llms.txt lists every page of the Intear docs.

## Limits

| | |
| --- | --- |
| Requests waiting for their reply | 4,096 |
| Subscriptions per connection | 100 |
| `ids`, `tokens` and `where.parent` lists | 2,000 |
| Tokens in trades and transfers, from `token` or under `parent` | 100 |
| Accounts followed with `balances.subscribe` | 100 |
| Rows in a page of history | 200 |
| Rows from `after_id` | 10,000 |
| A message from the client | 64 KiB |

[`schema`](https://docs.intear.tech/api/reference/messages.md#schema) has them as `limits`, and so does `hello`, without `feed_tokens`. Going over one is a [`too_many`](https://docs.intear.tech/api/reference/errors.md) error, except for these: more than 200 rows in a page of history (`limit` or `history`) is a `bad_request`, more than 10,000 rows after an `after_id` is [`too_far_behind`](https://docs.intear.tech/api/reference/errors.md), and a message of 64 KiB or more on the WebSocket [drops the connection](https://docs.intear.tech/api/reference/messages.md#closing-codes). `candles.*` take up to 200 `tokens` and `prices.at` up to 100 `queries`, and going over those is a `bad_request`.

## Credits

Every message has `credits_used`, what it cost:

- A credit per started KiB of the message, uncompressed, at least one.
- A `balances.*` result: 5 more for each of `native` and `rhea`.
- A result with `1S` candles: 1 more per started hundred candles.
- Pushes cost only their size.
- `hello`, `idle`, errors and `end` cost nothing.

Over HTTP, the `X-Credits-Used` header of a method's response has it, for the response's body. `/public_key`, `/stats`, `/cosmetics` and icons have none.

:::note
Nothing is charged yet. The numbers show what you would use after it exits Beta.
:::
